Skip to content

Bump the gomod group with 2 updates #261

Bump the gomod group with 2 updates

Bump the gomod group with 2 updates #261

Workflow file for this run

name: test
on:
push:
branches:
- "**"
jobs:
go:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Get dependencies
run: go mod download
- name: Test
run: go test -race -covermode=atomic -cover ./...
- name: Build
run: go build -o guess-my-word
- name: Upload
uses: actions/upload-artifact@v4
with:
name: guess-my-word-app
if-no-files-found: error
path: guess-my-word
go-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Vet
run: go vet ./...
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: "v1.54.0"
skip-pkg-cache: true
playwright:
runs-on: ubuntu-latest
timeout-minutes: 60
needs: [ "go" ]
steps:
- uses: actions/checkout@v4
- name: Download App
uses: actions/download-artifact@v4
with:
name: guess-my-word-app
path: guess-my-word
- name: Run App
run: |
chmod +x guess-my-word/guess-my-word
./guess-my-word/guess-my-word --help
./guess-my-word/guess-my-word &
- uses: actions/setup-node@v4
with:
node-version-file: '.tool-versions'
cache: npm
cache-dependency-path: web/package-lock.json
- working-directory: web
run: npm ci
- name: Install Playwright Browsers
working-directory: web
run: npx playwright install --with-deps
- name: Run Playwright tests
working-directory: web
run: npx playwright test
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: web/playwright-report/
retention-days: 30