portails/.github/workflows/node.js-ci.yml

48 lines
931 B
YAML
Raw 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: master
pull_request:
branches: master
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 PNPM
uses: pnpm/action-setup@v2
2023-06-09 19:17:11 +02:00
with:
2023-06-15 12:19:50 +02:00
version: 8
2023-06-09 19:17:11 +02:00
2023-06-15 12:19:50 +02:00
- 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 }}
cache: 'pnpm'
- name: Install dependencies
2023-06-15 12:21:09 +02:00
run: pnpm install
2023-06-15 12:19:50 +02:00
# - name: Run formatter
# run: pnpm format --if-present
# - name: Run linters
# run: pnpm lint --if-present
2023-06-09 19:17:11 +02:00
2023-06-15 12:19:50 +02:00
- name: Build site
run: pnpm build
2023-06-09 19:17:11 +02:00
2023-06-15 12:19:50 +02:00
# - name: Run tests
# run: pnpm test --if-present