1
0
mirror of https://github.com/tcgdex/cards-database.git synced 2025-04-25 04:12:11 +00:00
Florian Bouillon 83705dd880
Maintenance work
Signed-off-by: Avior <github@avior.me>
2021-10-11 15:18:10 +02:00

46 lines
1.0 KiB
YAML

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Compile
on:
push:
branches:
- master
paths:
- 'data/**'
- 'meta/**'
pull_request:
jobs:
test:
name: Compilation Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup NodeJS
uses: actions/setup-node@v2.4.1
with:
node-version: 16.x
- name: Install packages
run: npm ci
- name: Build the database
run: npm run compile
push:
name: Launch the compiler
needs: test
if: ${{ github.event_name == 'push' }}
runs-on: ubuntu-latest
steps:
- name: Compiler Dispatch
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.PAC }}
repository: tcgdex/compiler
event-type: card-database-update