Skip to content

Commit 1beca66

Browse files
Merge pull request #42 from preactjs/tooling
2 parents 0294e90 + 8872b62 commit 1beca66

File tree

6 files changed

+5754
-7251
lines changed

6 files changed

+5754
-7251
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,34 @@ jobs:
1010
test:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v1
14-
- uses: actions/setup-node@v1
15-
with:
16-
node-version: '12.x'
17-
- name: npm install, build, and test
18-
run: npm ci
19-
- name: build
20-
run: npm run prepare
21-
env:
22-
CI: true
23-
- name: build
24-
run: npm test
25-
env:
26-
CI: true
27-
- name: saucelabs
28-
run: npm run test:browser
29-
env:
30-
CI: true
31-
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
32-
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
13+
- uses: actions/checkout@v1
14+
- uses: actions/setup-node@v1
15+
with:
16+
node-version: '12.x'
17+
- name: Install webkit deps
18+
run: |
19+
sudo apt-get update
20+
sudo apt-get install libgstreamer1.0-0 libbrotli1 libopus0 libwoff1 libgstreamer-plugins-base1.0-0 libgstreamer-gl1.0-0 libgstreamer-plugins-bad1.0-0 libopenjp2-7 libwebpdemux2 libhyphen0 libgles2
21+
- name: Cache node modules
22+
uses: actions/cache@v1
23+
env:
24+
cache-name: cache-node-modules
25+
with:
26+
path: ~/.npm
27+
# This uses the same name as the build-action so we can share the caches.
28+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
29+
restore-keys: |
30+
${{ runner.os }}-build-${{ env.cache-name }}-
31+
${{ runner.os }}-build-
32+
${{ runner.os }}-
33+
- run: npm ci
34+
- name: build
35+
run: npm run prepare
36+
- name: test
37+
run: |
38+
npm run lint
39+
npm run test:browsers
40+
env:
41+
CI: true
42+
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
43+
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}

0 commit comments

Comments
 (0)