Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
schoren committed Oct 20, 2023
1 parent c708656 commit 0509043
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 26 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ jobs:
- name: Setup go
uses: actions/setup-go@v3
with:
go-version-file: 'go.work'
go-version-file: 'go.mod'
cache: true
cache-dependency-path: go.work
cache-dependency-path: go.mod
- uses: actions/download-artifact@v3
with:
name: tracetest-web
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/deploy-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ jobs:
- name: Setup go
uses: actions/setup-go@v3
with:
go-version-file: 'go.work'
go-version-file: 'go.mod'
cache: true
cache-dependency-path: go.work
cache-dependency-path: go.mod
- name: install graph tool
run: |
mkdir /tmp/go-arch
Expand Down Expand Up @@ -100,9 +100,9 @@ jobs:
- name: Setup go
uses: actions/setup-go@v3
with:
go-version-file: 'go.work'
go-version-file: 'go.mod'
cache: true
cache-dependency-path: go.work
cache-dependency-path: go.mod
- shell: bash
run: |
echo "sha_short=$(git rev-parse --short=8 $GITHUB_SHA)" >> $GITHUB_ENV
Expand Down Expand Up @@ -158,9 +158,9 @@ jobs:
- name: Setup go
uses: actions/setup-go@v3
with:
go-version-file: 'go.work'
go-version-file: 'go.mod'
cache: true
cache-dependency-path: go.work
cache-dependency-path: go.mod

- shell: bash
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docusaurus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ jobs:
- name: Setup go
uses: actions/setup-go@v3
with:
go-version-file: 'go.work'
go-version-file: 'go.mod'
cache: true
cache-dependency-path: go.work
cache-dependency-path: go.mod
# Node is required for npm
- name: Set up Node
uses: actions/setup-node@v2
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ jobs:
- name: Setup go
uses: actions/setup-go@v3
with:
go-version-file: "go.work"
go-version-file: "go.mod"
cache: true
cache-dependency-path: go.work
cache-dependency-path: go.mod
- name: install graph tool
run: |
mkdir /tmp/go-arch
Expand Down Expand Up @@ -67,9 +67,9 @@ jobs:
- name: Setup go
uses: actions/setup-go@v3
with:
go-version-file: "go.work"
go-version-file: "go.mod"
cache: true
cache-dependency-path: go.work
cache-dependency-path: "go.mod"
- name: Run unit tests
run: cd cli; make test

Expand All @@ -86,9 +86,9 @@ jobs:
- name: Setup go
uses: actions/setup-go@v3
with:
go-version-file: "go.work"
go-version-file: "go.mod"
cache: true
cache-dependency-path: go.work
cache-dependency-path: "go.mod"
- name: Run unit tests
run: cd server; make test -B

Expand All @@ -104,9 +104,9 @@ jobs:
- name: Setup go
uses: actions/setup-go@v3
with:
go-version-file: "go.work"
go-version-file: "go.mod"
cache: true
cache-dependency-path: go.work
cache-dependency-path: "go.mod"
- name: Run unit tests
run: cd agent; make test -B

Expand Down Expand Up @@ -201,9 +201,9 @@ jobs:
if: steps.cache-docker-build.outputs.cache-hit != 'true'
uses: actions/setup-go@v3
with:
go-version-file: "go.work"
go-version-file: "go.mod"
cache: true
cache-dependency-path: go.work
cache-dependency-path: "go.mod"
- uses: goreleaser/goreleaser-action@v4
if: steps.cache-docker-build.outputs.cache-hit != 'true'
with:
Expand Down Expand Up @@ -379,9 +379,9 @@ jobs:
# - name: Setup go
# uses: actions/setup-go@v3
# with:
# go-version-file: "go.work"
# go-version-file: "go.mod"
# cache: true
# cache-dependency-path: go.work
# cache-dependency-path: "go.mod"
# - uses: actions/download-artifact@v3
# with:
# name: tracetest-dist
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-candidate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ jobs:
- name: Setup go
uses: actions/setup-go@v3
with:
go-version-file: 'go.work'
go-version-file: "go.mod"
cache: true
cache-dependency-path: go.work
cache-dependency-path: "go.mod"

- uses: actions/download-artifact@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ jobs:
- name: Setup go
uses: actions/setup-go@v3
with:
go-version-file: 'go.work'
go-version-file: "go.mod"
cache: true
cache-dependency-path: go.work
cache-dependency-path: "go.mod"

- uses: actions/download-artifact@v3
with:
Expand Down

0 comments on commit 0509043

Please sign in to comment.