status-web/.github/workflows/ci.yml

45 lines
808 B
YAML
Raw Normal View History

name: CI
on:
push:
2023-03-13 18:22:51 +00:00
branches: ['main']
pull_request:
types: [opened, synchronize]
jobs:
build:
2023-03-13 18:22:51 +00:00
name: Build and Test
timeout-minutes: 15
runs-on: ${{ matrix.os }}
2023-03-13 18:22:51 +00:00
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
2023-03-13 18:22:51 +00:00
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 2
2023-03-13 18:22:51 +00:00
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
2023-03-13 18:22:51 +00:00
- name: Install dependencies
run: yarn --frozen-lockfile
2023-03-13 18:22:51 +00:00
- name: Build
run: yarn build
2023-03-13 18:22:51 +00:00
- name: Typecheck
run: yarn typecheck
2023-03-13 18:22:51 +00:00
- name: Lint
run: yarn lint && yarn format:check
2023-03-13 18:22:51 +00:00
- name: Test
run: yarn test