Merge pull request #23 from LarsBergqvist/dependabot/npm_and_yarn/wor… #49
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
name: CI | |
on: | |
push: | |
branches: [main] | |
jobs: | |
test-and-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install packages | |
run: yarn install | |
- name: Run tests | |
run: | | |
sudo apt-get install xvfb | |
xvfb-run --auto-servernum yarn test | |
- name: Build | |
run: | | |
yarn build |