summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kriese <michael.kriese@visualon.de>2024-11-20 12:39:01 +0100
committerMichael Kriese <michael.kriese@visualon.de>2024-11-20 12:39:01 +0100
commitc89a9961a87b84e8799e4ee1a75a83c7dd1cb027 (patch)
treedddefe90d99937514544700119d8de3247ce2725
parentMerge pull request 'fix: [FORGEJO] do not share the act-toolcache volume' (#6... (diff)
downloadforgejo-act-c89a9961a87b84e8799e4ee1a75a83c7dd1cb027.tar.xz
forgejo-act-c89a9961a87b84e8799e4ee1a75a83c7dd1cb027.zip
ci: use `go.mod` to install go
-rw-r--r--.forgejo/workflows/cascade-runner.yml7
-rw-r--r--.forgejo/workflows/test.yml13
2 files changed, 13 insertions, 7 deletions
diff --git a/.forgejo/workflows/cascade-runner.yml b/.forgejo/workflows/cascade-runner.yml
index 19ff09e..d319c7b 100644
--- a/.forgejo/workflows/cascade-runner.yml
+++ b/.forgejo/workflows/cascade-runner.yml
@@ -12,10 +12,13 @@ jobs:
container:
image: 'code.forgejo.org/oci/node:20-bookworm'
steps:
+ - uses: https://code.forgejo.org/actions/checkout@v4
+
- uses: https://code.forgejo.org/actions/setup-go@v5
with:
- go-version: "1.21"
- - uses: actions/cascading-pr@v1
+ go-version-file: go.mod
+
+ - uses: https://code.forgejo.org/actions/cascading-pr@v1
with:
origin-url: ${{ env.GITHUB_SERVER_URL }}
origin-repo: forgejo/act
diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml
index 33616c0..a985814 100644
--- a/.forgejo/workflows/test.yml
+++ b/.forgejo/workflows/test.yml
@@ -19,7 +19,7 @@ jobs:
steps:
- name: cache go path
id: cache-go-path
- uses: https://github.com/actions/cache@v3
+ uses: https://code.forgejo.org/actions/cache@v3
with:
path: /go_path
key: go_path-${{ github.repository }}-${{ github.ref_name }}
@@ -28,17 +28,20 @@ jobs:
go_path-
- name: cache go cache
id: cache-go-cache
- uses: https://github.com/actions/cache@v3
+ uses: https://code.forgejo.org/actions/cache@v3
with:
path: /go_cache
key: go_cache-${{ github.repository }}-${{ github.ref_name }}
restore-keys: |
go_cache-${{ github.repository }}-
go_cache-
- - uses: actions/setup-go@v5
+
+ - uses: https://code.forgejo.org/actions/checkout@v4
+
+ - uses: https://code.forgejo.org/actions/setup-go@v5
with:
- go-version: 1.21
- - uses: actions/checkout@v4
+ go-version-file: go.mod
+
- name: vet checks
run: go vet -v ./...
- name: build