diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 1f277f95..95ee8c75 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -12,12 +12,12 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: - go-version: 1.21.0 + go-version: 'stable' - name: Build run: go build -v ./cmd/... diff --git a/.github/workflows/go_legacy.yml b/.github/workflows/go_legacy.yml new file mode 100644 index 00000000..a86368dc --- /dev/null +++ b/.github/workflows/go_legacy.yml @@ -0,0 +1,26 @@ +name: Go + +on: + push: + paths: + - "**.go" + pull_request: + paths: + - "**.go" + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: 'oldstable' + + - name: Build + run: go build -v ./cmd/... + + - name: Tests + run: go test -v ./...