Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests(ci): migrate from travis to github actions #228

Merged
merged 8 commits into from
Jan 20, 2021
Merged
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: 🛠

on:
push:
branches: [master]
pull_request: # run on all PRs, not just PRs to a particular branch

jobs:
basics:
runs-on: ubuntu-latest
strategy:
matrix:
# awaiting support for 'latest'/'lts'. https://github.com/actions/setup-node/issues/26
node: [ '10', '12', '14' ]
paulirish marked this conversation as resolved.
Show resolved Hide resolved

steps:
- name: git clone
uses: actions/checkout@v2

- name: Setup node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}

- run: yarn --frozen-lockfile
- run: yarn build

- run: yarn test-formatting
- run: yarn type-check

# Run tests that require headful Chrome.
- run: sudo apt-get install xvfb
- name: yarn test
run: xvfb-run --auto-servernum yarn test --reporter=spec