Skip to content

Commit

Permalink
fix: cd workflows in server directory
Browse files Browse the repository at this point in the history
Signed-off-by: Quentin Guidée <[email protected]>
  • Loading branch information
quentinguidee committed Mar 3, 2024
1 parent 5f304f7 commit c832dca
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions .github/workflows/server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Go to server directory
run: cd server

- name: Check if workflow files changed
uses: dorny/paths-filter@v2
id: changes
with:
filters: |
workflows-changed:
- '.github/workflows/**.yml'
go-changed:
- 'go.mod'
- 'go.sum'
Expand All @@ -46,6 +47,9 @@ jobs:
with:
go-version: '1.21'

- name: Go to server directory
run: cd server

- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
Expand All @@ -65,6 +69,9 @@ jobs:
with:
go-version: '1.21'

- name: Go to server directory
run: cd server

- name: Run test with coverage
run: |
go test -coverprofile=coverage.out -json ./... > report.json
Expand All @@ -82,6 +89,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Go to server directory
run: cd server

- name: Setup Go
uses: actions/setup-go@v3
with:
Expand Down Expand Up @@ -126,6 +136,9 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Go to server directory
run: cd server

- name: Set up Go
uses: actions/setup-go@v3
with:
Expand Down Expand Up @@ -157,6 +170,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Go to server directory
run: cd server

- name: Set up Go
uses: actions/setup-go@v3
with:
Expand All @@ -179,6 +195,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Go to server directory
run: cd server

- name: Setup Docker Buildx
uses: server/docker/setup-buildx-action@v3

Expand Down Expand Up @@ -234,6 +253,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Go to server directory
run: cd server

- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3

Expand Down Expand Up @@ -302,6 +324,9 @@ jobs:
- name: Fetch tags
run: git fetch --force --tags

- name: Go to server directory
run: cd server

- name: Setup Go
uses: actions/setup-go@v3
with:
Expand Down

0 comments on commit c832dca

Please sign in to comment.