Skip to content

chore: update settings.json #1821

chore: update settings.json

chore: update settings.json #1821

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
client_build:
name: Client - Build (Compile TypeScript)
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: lts/*
cache: "yarn"
- name: Retrieve the cached "node_modules" directory (if present)
uses: actions/cache@v3
id: client-build-cache
with:
path: node_modules
key: client-build-node-modules-${{ hashFiles('yarn.lock') }}
- name: Install dependencies (if the cached directory was not found)
if: steps.client-build-cache.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile
- name: Build the TypeScript code
run: bash ./packages/client/build_client.sh
client_lint:
name: Client - Lint (ESLint)
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: lts/*
cache: "yarn"
- name: Retrieve the cached "node_modules" directory (if present)
uses: actions/cache@v3
id: client-lint-cache
with:
path: node_modules
key: client-lint-node-modules-${{ hashFiles('yarn.lock') }}
- name: Install dependencies (if the cached directory was not found)
if: steps.client-lint-cache.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile
- name: Create the "version.js" file
run: bash ./packages/client/set_version.sh
- name: Lint the TypeScript code
run: bash ./packages/lint_client.sh
client_test:
name: Client - Test (Jest)
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: lts/*
cache: "yarn"
- name: Retrieve the cached "node_modules" directory (if present)
uses: actions/cache@v3
id: client-test-cache
with:
path: node_modules
key: client-test-node-modules-${{ hashFiles('yarn.lock') }}
- name: Install dependencies (if the cached directory was not found)
if: steps.client-test-cache.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile
- name: Create the "version.js" file
run: bash ./packages/client/set_version.sh
- name: Test the TypeScript code
run: yarn test
server_build:
name: Server - Build (Compile Go)
runs-on: ubuntu-latest
env:
working-directory: ./server
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Install Golang
uses: actions/setup-go@v2
- name: Compile the Golang code
run: bash build_server.sh
working-directory: ${{ env.working-directory }}
server_lint:
name: Server - Lint (golangci-lint)
runs-on: ubuntu-latest
env:
working-directory: ./server
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Install Golang
uses: actions/setup-go@v2
# Linting of the server is disabled until it is rewritten in TypeScript.
#- name: Lint the Golang code
# uses: golangci/golangci-lint-action@v2
# with:
# version: v1.33
# working-directory: ${{ env.working-directory }}/src
spell_check:
name: Spell Check
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: lts/*
cache: "yarn"
- name: Retrieve the cached "node_modules" directory (if present)
uses: actions/cache@v3
id: spell-check-cache
with:
path: ${{ env.working-directory }}/node_modules
key: spell-check-node-modules-${{ hashFiles('yarn.lock') }}
- name: Install dependencies (if the cached directory was not found)
if: steps.spell-check-cache.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile
- name: Spell check the entire repository
run: bash spell_check.sh
discord:
name: Discord Failure Notification
needs:
[
client_build,
client_lint,
client_test,
server_build,
server_lint,
spell_check,
]
if: always() # This is needed to always run this job, even if the other jobs fail.
runs-on: ubuntu-latest
steps:
- uses: technote-space/workflow-conclusion-action@v2
- if: env.WORKFLOW_CONCLUSION != 'success' && env.WORKFLOW_CONCLUSION != 'cancelled'
uses: sarisia/actions-status-discord@v1
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
status: ${{ env.WORKFLOW_CONCLUSION }}
title: ""