added gameboard
This commit is contained in:
parent
93d278340e
commit
fa36efa455
68 changed files with 7800 additions and 1 deletions
29
gameboard-service/.github/workflows/release.yaml
vendored
Normal file
29
gameboard-service/.github/workflows/release.yaml
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
name: Release
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
name: Tests
|
||||
uses: ./.github/workflows/tests.yaml
|
||||
|
||||
deploy:
|
||||
name: netlify deploy
|
||||
needs: [tests]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- run: echo ${{ github.event.release.tag_name }} > ./static/version
|
||||
- run: npm ci
|
||||
- run: npm install -g netlify-cli
|
||||
- run: netlify build
|
||||
env:
|
||||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
||||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
|
||||
- run: netlify deploy --prod --message ${{ github.event.release.tag_name }}
|
||||
env:
|
||||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
||||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
|
||||
43
gameboard-service/.github/workflows/tests.yaml
vendored
Normal file
43
gameboard-service/.github/workflows/tests.yaml
vendored
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
name: Tests
|
||||
|
||||
on:
|
||||
push: # Branch pushes only, not tags
|
||||
branches:
|
||||
- "**"
|
||||
workflow_call: # Allow other workflows to call this one
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
name: npm run lint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- run: npm ci
|
||||
- run: npm run lint
|
||||
|
||||
check:
|
||||
name: npm run check
|
||||
needs: [lint]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- run: npm ci
|
||||
- run: npm run check
|
||||
|
||||
unit:
|
||||
name: npm run test:unit
|
||||
needs: [check]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- run: npm ci
|
||||
- run: npm run test:unit
|
||||
|
||||
build:
|
||||
name: npm run build
|
||||
needs: [check]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- run: npm ci
|
||||
- run: npm run build
|
||||
Loading…
Add table
Add a link
Reference in a new issue