use setup-go action instead of container
All checks were successful
irc build / Checkout (push) Successful in 2m41s
All checks were successful
irc build / Checkout (push) Successful in 2m41s
This commit is contained in:
parent
49894c7af3
commit
05ea1b328e
@ -8,20 +8,10 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- run: |
|
- name: Setup golang
|
||||||
ls -la
|
uses: actions/setup-go@v5
|
||||||
pwd
|
with:
|
||||||
ls -la /
|
go-version: '>=1.23'
|
||||||
|
- run: go version
|
||||||
Build:
|
- run: go build
|
||||||
runs-on: ubuntu-latest
|
- run: go test
|
||||||
container:
|
|
||||||
image: golang
|
|
||||||
options: --user root
|
|
||||||
steps:
|
|
||||||
- run: |
|
|
||||||
ls -la /
|
|
||||||
ls -la /workspace
|
|
||||||
find /workspace
|
|
||||||
- name: Run go build
|
|
||||||
run: go build
|
|
Loading…
x
Reference in New Issue
Block a user