portails/.github/workflows/hyas-ci.yml

39 lines
745 B
YAML
Raw Permalink Normal View History

2023-06-15 12:19:50 +02:00
name: Hyas CI
2023-06-09 19:17:11 +02:00
on:
push:
branches: main
2023-06-09 19:17:11 +02:00
pull_request:
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
run: npm ci
2023-06-15 12:19:50 +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
run: npm run build
2023-06-09 19:17:11 +02:00
2023-06-15 12:19:50 +02:00
# - name: Run tests
# run: npm test --if-present