CI #908
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#See: | |
# - https://dev.to/xaviercanchal/automatic-versioning-in-a-lerna-monorepo-using-github-actions-4hij | |
# - https://github.com/graphistry/pygraphistry/blob/master/.github/workflows/ci.yml | |
name: CI | |
on: | |
#Regular dev | |
push: | |
paths: [ | |
"projects/js-upload-api/**", | |
"projects/client-api/.eslintrc", | |
"projects/client-api/index.js", | |
"projects/client-api/package.json", | |
"projects/client-api/package-lock.json", | |
"projects/client-api/src/**", | |
"projects/client-api-react/assets/**", | |
"projects/client-api-react/src/**", | |
"projects/client-api-react/.babelrc", | |
"projects/client-api-react/.eslintrc", | |
"projects/client-api-react/index.js", | |
"projects/client-api-react/package.json", | |
"projects/client-api-react/package-lock.json", | |
"projects/client-api-react/rollup.config.js", | |
"lerna.json", | |
"package.json", | |
"package-lock.json", | |
"docker-compose.yml", | |
"Dockerfile" | |
] | |
pull_request: | |
types: [opened, synchronize] # Workflow triggering events | |
#Enable UI-driven branch testing | |
workflow_dispatch: | |
#Test main bidaily @ 1a | |
schedule: | |
- cron: '0 1 1-31/2 * *' | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
env: | |
COMPOSE_DOCKER_CLI_BUILD: 1 | |
DOCKER_BUILDKIT: 1 | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: "Build and lint" | |
run: | | |
docker-compose build | |
- name: "Lint" | |
run: | | |
docker-compose run --rm --entrypoint=/usr/local/bin/node graphistry-js ./node_modules/lerna/dist/cli.js run lint | |
#- name: Storybook 🔧 | |
# run: ./tools/storybook.sh | |
#- name: JSDocs 🔧 | |
# run: ./tools/jsdocs.sh | |
- name: "Ensure binaries" | |
run: | | |
./tools/extract-dist.sh |