Ux squad/sero/2023 7 #3/fix xp - WIP #3635
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: TheGame CI | |
on: | |
pull_request: | |
branches: | |
- master | |
- develop | |
push: | |
branches: | |
- master | |
- develop | |
jobs: | |
test: | |
name: Run Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{github.token}} | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
- uses: actions/[email protected] | |
with: | |
path: '**/node_modules' | |
key: nodeModules-${{runner.os}}-${{hashFiles('**/yarn.lock')}} | |
- name: Install packages | |
run: yarn --frozen-lockfile | |
env: | |
CI: true | |
- name: Typechecking | |
run: yarn typecheck | |
env: | |
CI: true | |
THE_GRAPH_API_TOKEN: ${{secrets.THE_GRAPH_API_TOKEN}} | |
- name: Linting | |
run: yarn lint | |
env: | |
CI: true | |
# Disabling rather than fighting with ts-jest | |
# at this particular moment. dys:2022/11/01 | |
# - name: Testing | |
# run: yarn test --ci --coverage | |
# env: | |
# CI: true | |
# - uses: actions/github-script@v6 | |
# with: | |
# script: | | |
# github.rest.issues.createComment({ | |
# issue_number: context.issue.number, | |
# owner: context.repo.owner, | |
# repo: context.repo.repo, | |
# body: '🚧🚧 Tests Disabled 🚧🚧' | |
# }) |