37 lines
691 B
YAML
37 lines
691 B
YAML
|
name: Continuous Integration - Action
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches: master
|
||
|
pull_request:
|
||
|
branches: master
|
||
|
|
||
|
jobs:
|
||
|
build:
|
||
|
runs-on: ${{ matrix.os }}
|
||
|
|
||
|
strategy:
|
||
|
matrix:
|
||
|
os: [ubuntu-latest]
|
||
|
node-version: [18.x, 20.x]
|
||
|
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
- uses: pnpm/action-setup@v2
|
||
|
with:
|
||
|
version: 7
|
||
|
|
||
|
- name: Use Node.js ${{ matrix.node-version }}
|
||
|
uses: actions/setup-node@v3
|
||
|
with:
|
||
|
node-version: ${{ matrix.node-version }}
|
||
|
cache: 'pnpm'
|
||
|
|
||
|
- name: Install dependencies
|
||
|
run: pnpm install
|
||
|
|
||
|
- name: Run test script
|
||
|
run: pnpm test
|
||
|
|
||
|
- name: Build production website
|
||
|
run: pnpm build
|