Skip to content

Commit

Permalink
Update CI: run on PRs, use node 16 (#766)
Browse files Browse the repository at this point in the history
  • Loading branch information
gpoitch authored Aug 11, 2022
1 parent 89f65c5 commit 083112d
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
name: CI
on: [push]

on:
pull_request:
push:
branches: [$default-branch]

jobs:
build:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '12.x'
- run: yarn install
- name: Run headless test
uses: GabrielBB/xvfb-action@v1
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
with:
run: yarn test:ci
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with: { node-version: 16 }
- run: yarn install
- name: Run headless test
uses: GabrielBB/xvfb-action@v1
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
with:
run: yarn test:ci

0 comments on commit 083112d

Please sign in to comment.