-
Notifications
You must be signed in to change notification settings - Fork 27.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate CircleCi config to GitHub actions (#10274)
* Add initial config * Comment out other action * Update config * Update config * Update configs * rename requires -> needs * Update configs * Update configs * Enable headless mode * Disable circleci while testing * Disable build-test-deploy in circle * Update build step * Disable fail fast * Update configs * Add runs-on to publish steps * bump * Update config * Update group count * Update checkout path * Update test all concurrency * Handle EPIPE errors * Revert "Handle EPIPE errors" This reverts commit a993565. * Update test to handle EPIPE in test * Remove CircleCi config * Revert "Update test to handle EPIPE in test" This reverts commit c8cb72d. * Update to use node 10 and see if EPIPE error is still present * Revert "Revert "Update test to handle EPIPE in test"" This reverts commit efd2abe. * Revert "Update to use node 10 and see if EPIPE error is still present" This reverts commit 893da4f. * Add todo for node issue * undo lint change as it should be correct * Add dummy step to require * Add runs-on for dummy job
- Loading branch information
Showing
8 changed files
with
258 additions
and
290 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
on: | ||
push: | ||
branches: [canary] | ||
pull_request: | ||
types: [opened, synchronize] | ||
|
||
name: Build, test, and deploy | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: yarn install --frozen-lockfile --check-files | ||
env: | ||
NEXT_TELEMETRY_DISABLED: 1 | ||
|
||
- uses: actions/cache@v1 | ||
id: cache-build | ||
with: | ||
path: '.' | ||
key: ${{ github.sha }} | ||
|
||
lint: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- uses: actions/cache@v1 | ||
id: restore-build | ||
with: | ||
path: '.' | ||
key: ${{ github.sha }} | ||
|
||
- run: yarn lint | ||
|
||
testAll: | ||
name: Test All | ||
runs-on: ubuntu-latest | ||
needs: build | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
group: [1, 2, 3, 4, 5, 6] | ||
steps: | ||
- uses: actions/cache@v1 | ||
id: restore-build | ||
with: | ||
path: '.' | ||
key: ${{ github.sha }} | ||
|
||
- run: node run-tests.js --timings -g ${{ matrix.group }}/6 -c 3 | ||
env: | ||
NEXT_TELEMETRY_DISABLED: 1 | ||
HEADLESS: true | ||
|
||
testsPass: | ||
name: Tests pass | ||
runs-on: ubuntu-latest | ||
needs: [lint, testAll] | ||
steps: | ||
- run: exit 0 | ||
|
||
testFirefox: | ||
name: Test Firefox (production) | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- uses: actions/cache@v1 | ||
id: restore-build | ||
with: | ||
path: '.' | ||
key: ${{ github.sha }} | ||
|
||
- run: yarn testfirefox --forceExit test/integration/production/ | ||
env: | ||
NEXT_TELEMETRY_DISABLED: 1 | ||
HEADLESS: true | ||
|
||
testSafari: | ||
name: Test Safari (production) | ||
runs-on: ubuntu-latest | ||
needs: build | ||
if: github.ref == 'canary' | ||
steps: | ||
- uses: actions/cache@v1 | ||
id: restore-build | ||
with: | ||
path: '.' | ||
key: ${{ github.sha }} | ||
|
||
- run: yarn testsafari --forceExit test/integration/production/ | ||
env: | ||
NEXT_TELEMETRY_DISABLED: 1 | ||
BROWSERSTACK: true | ||
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }} | ||
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }} | ||
|
||
saveNpmToken: | ||
name: Potentially save npm token | ||
runs-on: ubuntu-latest | ||
if: github.ref == 'canary' | ||
needs: [build, testAll] | ||
steps: | ||
- run: ([[ ! -z $NPM_TOKEN ]] && echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc) || echo "Did not write npm token" | ||
|
||
publishRelease: | ||
name: Potentially publish release | ||
runs-on: ubuntu-latest | ||
needs: saveNpmToken | ||
steps: | ||
- run: ./publish-release.sh |
13 changes: 8 additions & 5 deletions
13
.github/workflows/pull_request.yml → .github/workflows/pull_request_stats.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
on: pull_request | ||
name: Generate pull request stats | ||
on: | ||
pull_request: | ||
types: [opened, synchronize] | ||
|
||
name: Generate Pull Request Stats | ||
|
||
jobs: | ||
prStats: | ||
stats: | ||
name: PR Stats | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: PR Stats | ||
uses: zeit/next-stats-action@master | ||
- uses: zeit/next-stats-action@master | ||
env: | ||
COMMENT_ENDPOINT: https://next-stats.jjsweb.site/api/comment |
4 changes: 3 additions & 1 deletion
4
.github/workflows/release.yml → .github/workflows/release_stats.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
on: release | ||
name: Generate release stats | ||
|
||
name: Generate Release Stats | ||
|
||
jobs: | ||
prStats: | ||
name: PR Stats | ||
|
Oops, something went wrong.