Store artifacts in CI jobs
This commit is contained in:
Родитель
c6d3441c02
Коммит
aedb4b4596
|
@ -12,6 +12,11 @@ jobs:
|
|||
- run: yarn install
|
||||
- run: yarn build
|
||||
- run: yarn test
|
||||
- run:
|
||||
name: Preparing artifacts
|
||||
command: yarn artifact
|
||||
- store_artifacts:
|
||||
path: ./artifacts
|
||||
workflows:
|
||||
build-and-test:
|
||||
jobs:
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
dist/
|
||||
node_modules/
|
||||
schemas/
|
||||
artifacts/
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env bash
|
||||
set -eu
|
||||
|
||||
# Prepare a directory for artifacts
|
||||
BUNDLE_NAME="rapid-experiments-shared-$(git describe --always)"
|
||||
OUTDIR="artifacts/$BUNDLE_NAME"
|
||||
mkdir -p $OUTDIR
|
||||
|
||||
# Copy all artifacts into it
|
||||
cp -r ./schemas $OUTDIR
|
||||
|
||||
# Bundle it
|
||||
tar -czvf $OUTDIR.tar.gz $OUTDIR
|
|
@ -1,15 +1,15 @@
|
|||
{
|
||||
"name": "tiger-schemas",
|
||||
"name": "rapid-experiments-shared",
|
||||
"version": "0.0.1",
|
||||
"license": "MPL-2.0",
|
||||
"scripts": {
|
||||
"build": "npm-run-all -s build:*",
|
||||
"build:json-schema": "./bin/build-schemas.ts",
|
||||
"artifact": "./bin/pack-artifact.sh",
|
||||
"test": "npm-run-all -s test:*",
|
||||
"test:normandy-arguments": "./test/normandy-arguments.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"@types/node": "^14.0.3",
|
||||
"@types/node-fetch": "^2.5.7",
|
||||
|
|
Загрузка…
Ссылка в новой задаче