48 lines
931 B
YAML
48 lines
931 B
YAML
name: Hyas CI
|
|
|
|
on:
|
|
push:
|
|
branches: master
|
|
pull_request:
|
|
branches: master
|
|
|
|
jobs:
|
|
build:
|
|
name: "Build: ${{ matrix.os }}"
|
|
runs-on: ${{ matrix.os }}
|
|
timeout-minutes: 3
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
node-version: [18.x, 20.x]
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup PNPM
|
|
uses: pnpm/action-setup@v2
|
|
with:
|
|
version: 8
|
|
|
|
- name: Setup node@${{ matrix.node-version }}
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
cache: 'pnpm'
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install
|
|
|
|
# - name: Run formatter
|
|
# run: pnpm format --if-present
|
|
|
|
# - name: Run linters
|
|
# run: pnpm lint --if-present
|
|
|
|
- name: Build site
|
|
run: pnpm build
|
|
|
|
# - name: Run tests
|
|
# run: pnpm test --if-present
|