Docker Updates (#206) #357
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: Test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
lint-test: | |
name: Lint ${{ matrix.app }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
app: | |
- frontend | |
- backend | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
# https://github.com/actions/setup-node/issues/480#issuecomment-1915448139 | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Set up Node.js LTS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
cache: 'pnpm' | |
cache-dependency-path: pnpm-lock.yaml | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Lint | |
run: pnpm run lint:${{ matrix.app }} --fix | |
- name: Commit changes | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: 'chore: Fix lint problems' | |
- name: Test | |
run: pnpm run test:${{ matrix.app }} |