Skip to content

Move test and lints to GitHub actions #3

Move test and lints to GitHub actions

Move test and lints to GitHub actions #3

Workflow file for this run

name: Tests
on:
push:
branches:
- master
- 'release-*'
pull_request:
branches:
- master
- 'release-*'
jobs:
unit-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: actions/setup-node@v3
with:
node-version: '16.x'
- name: Install Python for node-sass
run: sudo apt-get install -y python2
- name: Install packages
run: ./scripts/bootstrap
- name: Run tests
run: yarn test
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: actions/setup-node@v3
with:
node-version: '16.x'
- name: Install Python for node-sass
run: sudo apt-get install -y python2
- name: Install packages
run: ./scripts/bootstrap
- name: Run linter
run: yarn lint:js