Adjust for @nuxtjs/i18n update from v8 to v9 #1267
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: CI/Build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build-frontend: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./frontend | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
with: | |
package_json_file: frontend/package.json | |
# pnpm has to be installed before node to make use of caching | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: 'frontend/package.json' | |
cache: pnpm | |
cache-dependency-path: frontend/pnpm-lock.yaml | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm typecheck | |
- run: pnpm lint | |
- run: pnpm generate | |
build-backend: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./backend | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: backend/go.mod | |
cache-dependency-path: backend/go.sum | |
- run: go build -v ./... | |
- run: go test -v ./... -cover -covermode=atomic -coverpkg=./... -coverprofile=coverage.txt | |
- uses: codecov/codecov-action@v4 | |
with: | |
token: ${{secrets.CODECOV_TOKEN}} |