Merge pull request #222 from autonomys/fix-encoding-handling #23
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: Services | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "backend/**" # Only trigger on changes within this folder | |
- ".github/**" | |
pull_request: | |
paths: | |
- "backend/**" # Only trigger on changes within this folder | |
- ".github/**" | |
workflow_dispatch: | |
jobs: | |
backend-build-check: | |
name: Services Build, Test and Lint Check | |
runs-on: ubuntu-latest | |
# Cache dependencies to speed up the workflow | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "20" | |
- name: Install Yarn | |
run: corepack enable | |
- name: Install dependencies | |
run: corepack use yarn@4.2.2 | |
- name: Build common | |
run: yarn models build | |
- name: Run lint | |
run: yarn lint | |
- name: Run build | |
run: yarn build | |
- name: Run tests | |
run: yarn test |