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:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
- run: |
|
||||
ls -la
|
||||
pwd
|
||||
ls -la /
|
||||
|
||||
Build:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: golang
|
||||
options: --user root
|
||||
steps:
|
||||
- run: |
|
||||
ls -la /
|
||||
ls -la /workspace
|
||||
find /workspace
|
||||
- name: Run go build
|
||||
run: go build
|
||||
- name: Setup golang
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '>=1.23'
|
||||
- run: go version
|
||||
- run: go build
|
||||
- run: go test
|
Loading…
x
Reference in New Issue
Block a user