Skip to content
Open
Changes from all 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
27 changes: 27 additions & 0 deletions .github/workflows/test-and-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Test and Build

on: [pull_request, issues]

jobs:
test-and-build:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v1
with:
node-version: "12.8.1"
- uses: actions/checkout@v1
- uses: actions/cache@v1.1.2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
restore-keys: ${{ runner.os }}-node-
- name: Install dependencies
run: npm ci
- name: Prettier
run: npx --no-install prettier --check .
- name: Check linting
run: npx --no-install eslint .
- name: Run tests
run: npm run test
- name: Build application
run: npm run build