mirror of
https://github.com/tcgdex/cards-database.git
synced 2025-04-22 02:42:09 +00:00
* docs: update README.md [skip ci] * docs: update .all-contributorsrc [skip ci] * quick fix Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> Co-authored-by: Avior <florian.bouillon@delta-wings.net>
49 lines
1.1 KiB
YAML
49 lines
1.1 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:
|
|
paths:
|
|
- 'data/**'
|
|
- 'meta/**'
|
|
|
|
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
|