Skip to content

Commit 9145d9e

Browse files
authored
Migrate CircleCi config to GitHub actions (vercel#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
1 parent 57f72ea commit 9145d9e

File tree

8 files changed

+258
-290
lines changed

8 files changed

+258
-290
lines changed

.circleci/config.yml

Lines changed: 0 additions & 217 deletions
This file was deleted.
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
on:
2+
push:
3+
branches: [canary]
4+
pull_request:
5+
types: [opened, synchronize]
6+
7+
name: Build, test, and deploy
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- run: yarn install --frozen-lockfile --check-files
15+
env:
16+
NEXT_TELEMETRY_DISABLED: 1
17+
18+
- uses: actions/cache@v1
19+
id: cache-build
20+
with:
21+
path: '.'
22+
key: ${{ github.sha }}
23+
24+
lint:
25+
runs-on: ubuntu-latest
26+
needs: build
27+
steps:
28+
- uses: actions/cache@v1
29+
id: restore-build
30+
with:
31+
path: '.'
32+
key: ${{ github.sha }}
33+
34+
- run: yarn lint
35+
36+
testAll:
37+
name: Test All
38+
runs-on: ubuntu-latest
39+
needs: build
40+
strategy:
41+
fail-fast: false
42+
matrix:
43+
group: [1, 2, 3, 4, 5, 6]
44+
steps:
45+
- uses: actions/cache@v1
46+
id: restore-build
47+
with:
48+
path: '.'
49+
key: ${{ github.sha }}
50+
51+
- run: node run-tests.js --timings -g ${{ matrix.group }}/6 -c 3
52+
env:
53+
NEXT_TELEMETRY_DISABLED: 1
54+
HEADLESS: true
55+
56+
testsPass:
57+
name: Tests pass
58+
runs-on: ubuntu-latest
59+
needs: [lint, testAll]
60+
steps:
61+
- run: exit 0
62+
63+
testFirefox:
64+
name: Test Firefox (production)
65+
runs-on: ubuntu-latest
66+
needs: build
67+
steps:
68+
- uses: actions/cache@v1
69+
id: restore-build
70+
with:
71+
path: '.'
72+
key: ${{ github.sha }}
73+
74+
- run: yarn testfirefox --forceExit test/integration/production/
75+
env:
76+
NEXT_TELEMETRY_DISABLED: 1
77+
HEADLESS: true
78+
79+
testSafari:
80+
name: Test Safari (production)
81+
runs-on: ubuntu-latest
82+
needs: build
83+
if: github.ref == 'canary'
84+
steps:
85+
- uses: actions/cache@v1
86+
id: restore-build
87+
with:
88+
path: '.'
89+
key: ${{ github.sha }}
90+
91+
- run: yarn testsafari --forceExit test/integration/production/
92+
env:
93+
NEXT_TELEMETRY_DISABLED: 1
94+
BROWSERSTACK: true
95+
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
96+
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
97+
98+
saveNpmToken:
99+
name: Potentially save npm token
100+
runs-on: ubuntu-latest
101+
if: github.ref == 'canary'
102+
needs: [build, testAll]
103+
steps:
104+
- run: ([[ ! -z $NPM_TOKEN ]] && echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc) || echo "Did not write npm token"
105+
106+
publishRelease:
107+
name: Potentially publish release
108+
runs-on: ubuntu-latest
109+
needs: saveNpmToken
110+
steps:
111+
- run: ./publish-release.sh
Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
on: pull_request
2-
name: Generate pull request stats
1+
on:
2+
pull_request:
3+
types: [opened, synchronize]
4+
5+
name: Generate Pull Request Stats
6+
37
jobs:
4-
prStats:
8+
stats:
59
name: PR Stats
610
runs-on: ubuntu-latest
711
steps:
8-
- name: PR Stats
9-
uses: zeit/next-stats-action@master
12+
- uses: zeit/next-stats-action@master
1013
env:
1114
COMMENT_ENDPOINT: https://next-stats.jjsweb.site/api/comment

.github/workflows/release.yml renamed to .github/workflows/release_stats.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
on: release
2-
name: Generate release stats
2+
3+
name: Generate Release Stats
4+
35
jobs:
46
prStats:
57
name: PR Stats

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy