Add Github Changelogs Page #380
Workflow file for this run
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: | |
pull_request: | |
env: | |
REGISTRY: ghcr.io | |
IMAGE_NAME: ${{ github.repository }} | |
permissions: write-all | |
jobs: | |
lint-ts: | |
runs-on: ubuntu-latest | |
env: | |
GBANS_GENERAL_STEAM_KEY: ${{ secrets.GBANS_GENERAL_STEAM_KEY }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: 9 | |
run_install: false | |
- name: Setup nodejs | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
cache: 'pnpm' | |
cache-dependency-path: 'frontend/pnpm-lock.yaml' | |
- name: Install modules | |
working-directory: ./frontend | |
run: pnpm install --frozen-lockfile --strict-peer-dependencies | |
- name: Prettier | |
run: make lint_ts | |
- name: TypeScript | |
run: make typecheck_ts | |
lint-golangci: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: 'stable' | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: 'latest' | |
args: --timeout=10m | |
staticcheck: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: 'stable' | |
- run: go install honnef.co/go/tools/cmd/staticcheck@latest | |
- run: make static | |
docker-test: | |
needs: [lint-ts, lint-golangci, staticcheck] | |
runs-on: ubuntu-latest | |
env: | |
GBANS_GENERAL_STEAM_KEY: ${{ secrets.GBANS_GENERAL_STEAM_KEY }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build the docker-compose stack | |
run: make docker_test | |
# release: | |
# needs: [docker-test] | |
# if: success() && startsWith(github.event.ref, 'refs/tags/v') | |
# uses: ./.github/workflows/release.yml |