Skip to content

Support repo creation as part of rill deploy by requesting Github write access #5024

Support repo creation as part of rill deploy by requesting Github write access

Support repo creation as part of rill deploy by requesting Github write access #5024

Workflow file for this run

on:
pull_request:
paths:
- ".github/workflows/go-test.yml"
- "**.go"
- "go.mod"
name: Test Go code
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.22
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Go fmt
run: test -z $(gofmt -l .)
- name: Go test
run: go test -short -v ./...