2021-09-25 10:04:10 -04:00
|
|
|
name: ci
|
|
|
|
|
|
|
|
on: [ push, pull_request ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-05-19 15:13:46 -04:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up Node.js v16
|
2021-09-25 10:04:10 -04:00
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
2023-05-19 15:13:46 -04:00
|
|
|
node-version: 16
|
2021-09-25 10:04:10 -04:00
|
|
|
|
|
|
|
- name: Set up node modules
|
|
|
|
run: npm ci
|
|
|
|
|
2023-05-19 15:11:43 -04:00
|
|
|
- name: Build artifacts
|
|
|
|
run: npm run build
|
|
|
|
|
2021-09-25 10:04:10 -04:00
|
|
|
- name: Execute tests
|
|
|
|
run: npm run test
|
2021-09-26 06:57:11 -04:00
|
|
|
env:
|
|
|
|
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
|