add testing workflow

This commit is contained in:
Jelle van Snik 2022-05-02 15:59:11 +02:00
parent ea83df94b7
commit 29e7e5e06e
3 changed files with 34 additions and 8 deletions

View File

@ -1,12 +1,9 @@
name: Build & deploy
name: Deploying
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
@ -38,7 +35,6 @@ jobs:
name: Deploy
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
- name: Download artifact

View File

@ -34,6 +34,6 @@ jobs:
uses: wearerequired/lint-action@v2
with:
eslint: true
eslint_args: src
eslint_args: --max-warnings=0 src
eslint_extensions: tsx,ts
eslint_auto_fix: false

30
.github/workflows/testing.yml vendored Normal file
View File

@ -0,0 +1,30 @@
name: Testing
on:
push:
branches:
- next
pull_request:
types: [opened, reopened]
permissions: read-all
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: 16
- name: Install Yarn packages
run: yarn install
- name: Build project
run: yarn build