Bump github.com/redis/go-redis/v9 from 9.6.1 to 9.7.0 in the gomod gr… #305
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: | |
- "**" | |
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@v6 | |
with: | |
version: "latest" | |
playwright: | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
needs: [ "go" ] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: jdx/mise-action@v2 | |
- 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 & | |
- 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 |