diff options
author | earl-warren <earl-warren@noreply.code.forgejo.org> | 2024-11-20 13:13:06 +0100 |
---|---|---|
committer | earl-warren <earl-warren@noreply.code.forgejo.org> | 2024-11-20 13:13:06 +0100 |
commit | 2fc966fa265a3faf2e61337be1e45e53c1ebf4b8 (patch) | |
tree | dddefe90d99937514544700119d8de3247ce2725 | |
parent | Merge pull request 'fix: [FORGEJO] do not share the act-toolcache volume' (#6... (diff) | |
parent | ci: use `go.mod` to install go (diff) | |
download | forgejo-act-2fc966fa265a3faf2e61337be1e45e53c1ebf4b8.tar.xz forgejo-act-2fc966fa265a3faf2e61337be1e45e53c1ebf4b8.zip |
Merge pull request 'ci: use `go.mod` to install go' (#66) from ci/use-go-mod into mainv1.22.1
Reviewed-on: https://code.forgejo.org/forgejo/act/pulls/66
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
-rw-r--r-- | .forgejo/workflows/cascade-runner.yml | 7 | ||||
-rw-r--r-- | .forgejo/workflows/test.yml | 13 |
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 |