fix: clean up Forgejo workflow - use forgejo.riotpiao.com, REGISTRY_PAT secret, golang 1.26
ci / test (push) Canceled after 0s
ci / test (push) Canceled after 0s
This commit is contained in:
@@ -19,19 +19,16 @@ jobs:
|
|||||||
GOFLAGS: -mod=readonly
|
GOFLAGS: -mod=readonly
|
||||||
REGISTRY_PAT: ${{ secrets.REGISTRY_PAT }}
|
REGISTRY_PAT: ${{ secrets.REGISTRY_PAT }}
|
||||||
steps:
|
steps:
|
||||||
# actions/checkout is a Node-based action; golang:1.25 has no node on PATH.
|
# actions/checkout is a Node-based action; install node for Actions support.
|
||||||
- name: install node (required by JS-based actions)
|
- name: install node (required by JS-based actions)
|
||||||
run: apt-get update && apt-get install -y --no-install-recommends nodejs ca-certificates git
|
run: apt-get update && apt-get install -y --no-install-recommends nodejs ca-certificates git
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
# kmsvc-proto lives in another private repo on the same Forgejo instance.
|
# kmsvc-proto lives in another private repo on the same Forgejo instance.
|
||||||
# GITHUB_TOKEN is auto-injected by Forgejo Actions and has read access to all repos.
|
|
||||||
- name: configure git auth for private module fetch
|
- name: configure git auth for private module fetch
|
||||||
run: |
|
run: |
|
||||||
git config --global url."https://oauth2:${REGISTRY_PAT}@forgejo.riotpiao.com".insteadOf "https://forgejo.riotpiao.com"
|
git config --global url."https://oauth2:${REGISTRY_PAT}@forgejo.riotpiao.com".insteadOf "https://forgejo.riotpiao.com"
|
||||||
env:
|
|
||||||
REGISTRY_PAT: ${{ secrets.REGISTRY_PAT }}
|
|
||||||
|
|
||||||
- name: gofmt
|
- name: gofmt
|
||||||
run: |
|
run: |
|
||||||
@@ -56,6 +53,6 @@ jobs:
|
|||||||
|
|
||||||
- name: upload coverage
|
- name: upload coverage
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
# with:
|
with:
|
||||||
name: coverage
|
name: coverage
|
||||||
path: coverage.out
|
path: coverage.out
|
||||||
|
|||||||
Reference in New Issue
Block a user