From d60f990b0932aa0d27e992b2101910db51b588e0 Mon Sep 17 00:00:00 2001 From: Clark Du Date: Mon, 20 Jan 2020 19:56:16 +0000 Subject: [PATCH] chore(ci): add github action nightly build --- .circleci/{config.yml => config.disable.yml} | 0 .github/workflows/nightly.yml | 39 ++++++++++++++++++++ 2 files changed, 39 insertions(+) rename .circleci/{config.yml => config.disable.yml} (100%) create mode 100644 .github/workflows/nightly.yml diff --git a/.circleci/config.yml b/.circleci/config.disable.yml similarity index 100% rename from .circleci/config.yml rename to .circleci/config.disable.yml diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml new file mode 100644 index 0000000000..20fdef3464 --- /dev/null +++ b/.github/workflows/nightly.yml @@ -0,0 +1,39 @@ +name: nightly + +on: + schedule: + - cron: '0 0 * * *' + +jobs: + nightly: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - uses: actions/setup-node@v1 + with: + node-version: 12 + - name: install + run: yarn --check-files --frozen-lockfile --non-interactive + - name: lint + run: yarn test:lint + - name: audit + run: yarn run audit + - name: build + run: yarn test:fixtures -i + - name: lint app + run: yarn lint:app + - name: test dev + run: yarn test:dev -w=2 + - name: test unit + run: yarn test:unit + - name: test e2e + run: yarn test:e2e + - name: bump version + run: yarn lerna version --yes --no-git-tag-version --no-push + - name: build + run: PACKAGE_SUFFIX=edge yarn build + - name: publish + run: ./scripts/workspace-run npm publish -q + env: + NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}} +