quartz/.github/workflows/ci.yaml

38 lines
721 B
YAML
Raw Normal View History

name: Build and Test
2021-07-18 18:54:00 +03:00
on:
push:
branches:
2023-06-07 20:52:53 +03:00
- v4-alpha # TODO: update
2021-07-18 18:54:00 +03:00
jobs:
deploy:
2023-05-29 03:44:08 +03:00
runs-on: ubuntu-22.04
permissions:
contents: write
2021-07-18 18:54:00 +03:00
steps:
2023-05-29 03:44:08 +03:00
- uses: actions/checkout@v3
2022-05-03 08:51:15 +03:00
with:
2023-05-29 03:44:08 +03:00
fetch-depth: 0
2021-07-18 18:54:00 +03:00
2023-05-29 03:44:08 +03:00
- name: Setup Node
uses: actions/setup-node@v3
2021-07-18 18:54:00 +03:00
with:
2023-06-07 20:52:53 +03:00
node-version: 18
2021-07-18 18:54:00 +03:00
2023-05-29 03:44:08 +03:00
- name: Cache dependencies
uses: actions/cache@v3
2021-07-18 18:54:00 +03:00
with:
2023-05-29 03:44:08 +03:00
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
2021-07-18 18:54:00 +03:00
2023-05-29 03:44:08 +03:00
- run: npm ci
2023-07-13 10:19:35 +03:00
- name: Test
run: npm test
2021-07-18 18:54:00 +03:00
2023-07-13 10:19:35 +03:00
- name: Ensure Quartz builds
run: npx quartz build