2023-06-15 12:19:50 +02:00
|
|
|
name: Hyas CI
|
2023-06-09 19:17:11 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-06-23 12:36:29 +02:00
|
|
|
branches: main
|
2023-06-09 19:17:11 +02:00
|
|
|
pull_request:
|
2023-06-23 12:36:29 +02:00
|
|
|
branches: main
|
2023-06-09 19:17:11 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2023-06-15 12:19:50 +02:00
|
|
|
name: "Build: ${{ matrix.os }}"
|
2023-06-09 19:17:11 +02:00
|
|
|
runs-on: ${{ matrix.os }}
|
2023-06-15 12:19:50 +02:00
|
|
|
timeout-minutes: 3
|
2023-06-09 19:17:11 +02:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2023-06-15 12:19:50 +02:00
|
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
2023-06-09 19:17:11 +02:00
|
|
|
node-version: [18.x, 20.x]
|
|
|
|
|
|
|
|
steps:
|
2023-06-15 12:19:50 +02:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Setup node@${{ matrix.node-version }}
|
2023-06-09 19:17:11 +02:00
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
|
|
|
|
- name: Install dependencies
|
2023-06-23 12:36:29 +02:00
|
|
|
run: npm ci
|
2023-06-15 12:19:50 +02:00
|
|
|
|
2023-06-23 12:36:29 +02:00
|
|
|
- name: Run linters
|
|
|
|
run: npm run lint --if-present
|
2023-06-09 19:17:11 +02:00
|
|
|
|
2023-06-15 12:19:50 +02:00
|
|
|
- name: Build site
|
2023-06-23 12:36:29 +02:00
|
|
|
run: npm run build
|
2023-06-09 19:17:11 +02:00
|
|
|
|
2023-06-15 12:19:50 +02:00
|
|
|
# - name: Run tests
|
2023-06-23 12:36:29 +02:00
|
|
|
# run: npm test --if-present
|