sass-site/.github/workflows/test.yml

42 lines
862 B
YAML
Raw Normal View History

2023-01-09 21:24:06 +01:00
name: Lint & Test
on:
push:
pull_request:
types: [reopened]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
2023-06-16 02:00:55 +02:00
test:
name: Test
2023-06-16 01:47:14 +02:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: yarn
2023-06-16 02:00:55 +02:00
- name: Install & build
2023-06-16 01:47:14 +02:00
run: |
2023-06-16 02:00:55 +02:00
yarn install --immutable
2023-06-16 01:47:14 +02:00
yarn build-prod
2023-06-16 02:00:55 +02:00
- name: Check links
run: yarn checklinks:internal
2023-01-09 21:24:06 +01:00
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: yarn
- name: Install dependencies
run: yarn install --immutable
- name: Lint
run: yarn lint:ci