2020-01-20 19:56:16 +00:00
|
|
|
name: nightly
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 0 * * *'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
nightly:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@master
|
2020-02-26 12:50:01 +00:00
|
|
|
with:
|
|
|
|
ref: 'refs/heads/dev'
|
2020-02-26 14:13:16 +00:00
|
|
|
fetch-depth: 0 # All history
|
2020-01-20 19:56:16 +00:00
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: 12
|
2020-01-20 22:05:01 +00:00
|
|
|
registry-url: 'https://registry.npmjs.org'
|
2020-01-20 19:56:16 +00:00
|
|
|
- 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
|
2020-01-31 14:28:27 +00:00
|
|
|
env:
|
|
|
|
NODE_OPTIONS: "--max_old_space_size=4096"
|
2020-01-20 19:56:16 +00:00
|
|
|
- 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
|
2020-03-02 19:45:13 +00:00
|
|
|
run: yarn lerna version --yes --no-changelog --no-git-tag-version --no-push --force-publish "*" --loglevel verbose
|
2020-01-20 19:56:16 +00:00
|
|
|
- name: build
|
|
|
|
run: PACKAGE_SUFFIX=edge yarn build
|
2020-03-02 19:45:13 +00:00
|
|
|
# - name: publish
|
|
|
|
# run: ./scripts/workspace-run npm publish -q
|
|
|
|
# env:
|
|
|
|
# NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
|
2020-01-20 19:56:16 +00:00
|
|
|
|
2020-02-26 12:50:01 +00:00
|
|
|
# Anchors still not supported :(
|
|
|
|
# https://github.community/t5/GitHub-Actions/Support-for-YAML-anchors/td-p/30336
|
|
|
|
nightly-next:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@master
|
|
|
|
with:
|
|
|
|
ref: 'refs/heads/next'
|
2020-02-26 14:13:16 +00:00
|
|
|
fetch-depth: 0 # All history
|
2020-02-26 12:50:01 +00:00
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: 12
|
|
|
|
registry-url: 'https://registry.npmjs.org'
|
|
|
|
- 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
|
|
|
|
env:
|
|
|
|
NODE_OPTIONS: "--max_old_space_size=4096"
|
|
|
|
- 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
|
2020-03-02 19:45:13 +00:00
|
|
|
run: yarn lerna version --yes --no-changelog --no-git-tag-version --no-push --force-publish "*" --loglevel verbose
|
2020-02-26 12:50:01 +00:00
|
|
|
- name: build
|
|
|
|
run: PACKAGE_SUFFIX=edge yarn build
|
2020-03-02 19:45:13 +00:00
|
|
|
# - name: publish
|
|
|
|
# run: ./scripts/workspace-run npm publish --tag next -q
|
|
|
|
# env:
|
|
|
|
# NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
|
2020-02-26 12:50:01 +00:00
|
|
|
|
|
|
|
|