Skip to content

PF2e System CI

PF2e System CI #111

Workflow file for this run

name: PF2e System CI
on:
pull_request:
branches: [master]
push:
branches: [master, release-v9]
workflow_dispatch:
branches: [master, release-v9]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v4
- name: Git remote setup
run: |
git remote add upstream https://github.com/foundryvtt/pf2e.git
git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 upstream master
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Cache NPM Deps
id: cache-npm
uses: actions/cache@v3
with:
path: node_modules/
key: npm-${{ hashFiles('package-lock.json') }}
- name: Install NPM Deps
if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
run: |
npm ci
- name: Test
run: |
npm run test:ci
- name: Build
run: |
npm run build