fix(deps): update dependency @headlessui/react to v2.1.6 #1606
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: Backend CI Pipeline | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
defaults: | |
run: | |
working-directory: backend | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Run golangci-lint | |
uses: reviewdog/action-golangci-lint@v2 | |
with: | |
go_version_file: backend/go.mod | |
workdir: backend | |
fail_on_error: true | |
filter_mode: nofilter | |
golangci_lint_flags: --timeout=10m | |
format: | |
name: Format | |
runs-on: ubuntu-latest | |
steps: | |
- name: Generate a token | |
id: token | |
uses: actions/create-github-app-token@v1 | |
with: | |
app-id: ${{ secrets.PUSHER_APP_ID }} | |
private-key: ${{ secrets.PUSHER_PRIVATE_KEY }} | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ steps.token.outputs.token }} | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: backend/go.mod | |
cache-dependency-path: backend/go.sum | |
- name: Mod Tidy | |
run: go mod tidy | |
- name: Install Format Tools | |
run: | | |
go install golang.org/x/tools/cmd/[email protected] | |
go install mvdan.cc/[email protected] | |
- name: Run Format Tools | |
run: | | |
find . -type f -name '*.go' -not -path "*/internal/proto/*" | while IFS='' read -r file; do goimports -l -w "$file"; done | |
gofumpt -l -w . | |
- name: Push | |
id: push | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: "run go mod tidy & format go codes" | |
branch: ${{ github.head_ref }} | |
commit_user_name: ictsc-actions[bot] | |
commit_user_email: 154957684+ictsc-actions[bot]@users.noreply.github.com | |
commit_author: ictsc-actions[bot] <154957684+ictsc-actions[bot]@users.noreply.github.com> | |
- name: Exit with Error If Files Are Changed | |
if: steps.push.outputs.changes_detected == 'true' | |
run: exit 1 | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: backend/go.mod | |
cache-dependency-path: backend/go.sum | |
- name: Mod Download | |
run: go mod download | |
- name: Build | |
run: CGO_ENABLED=0 go build -ldflags "-s -w" -trimpath . | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: backend/go.mod | |
cache-dependency-path: backend/go.sum | |
- name: Run Test | |
run: go test ./... -v |