mirror of
https://github.com/gfleury/go-bitbucket-v1.git
synced 2025-07-02 20:12:54 -05:00
Enable github actions
This commit is contained in:
27
.github/workflows/pr.yaml
vendored
Normal file
27
.github/workflows/pr.yaml
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
name: Go
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
go-version: [ '1.21.x', 'stable' ]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Setup Go ${{ matrix.go-version }}
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: ${{ matrix.go-version }}
|
||||
|
||||
- name: Display Go version
|
||||
run: go version
|
||||
|
||||
- name: Build
|
||||
run: go build -v ./...
|
||||
|
||||
- name: Test
|
||||
run: go test -v ./...
|
Reference in New Issue
Block a user