mirror of
https://github.com/tcgdex/cards-database.git
synced 2025-05-28 02:40:11 +00:00
* Update node.js.yml * Update node.js.yml * Update node.js.yml * Update node.js.yml
36 lines
1001 B
YAML
36 lines
1001 B
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
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
name: Compilation Test
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Setup NodeJS
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 15.x
|
|
- run: yarn
|
|
- run: yarn compile
|
|
push:
|
|
name: Launch the compiler
|
|
needs: test
|
|
if: ${{ github.event_name == 'push' }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: CUrl to the compiler
|
|
run: |
|
|
curl -XPOST -H 'Accept: application/vnd.github.everest-preview+json' -H "Authorization: Bearer $PAC" -d '{"event_type": "webhook"}' 'https://api.github.com/repos/tcgdex/compiler/dispatches'
|
|
env:
|
|
PAC: ${{ secrets.PAC }}
|