diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml deleted file mode 100644 index f2fa73cf..00000000 --- a/.github/workflows/build-test.yml +++ /dev/null @@ -1,56 +0,0 @@ -name: Test - -on: - push: - branches: - - '*' # matches every branch that doesn't contain a '/' - - '*/*' # matches every branch containing a single '/' - - '**' # matches every branch - - '!release' # excludes master - - -jobs: - lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 - with: - go-version: 1.19 - - uses: golangci/golangci-lint-action@v3 - integration_tests: - strategy: - matrix: - os: [ubuntu-latest] - go_version: ['1.22'] - runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v4 - - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version: ${{ matrix.go_version }} - - - name: Build - run: go build -v ./... - - - name: Test - run: go test -v ./... - integration_tests: - runs-on: ubuntu-latest - needs: test - permissions: - contents: write - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 - with: - go-version: 1.19 - - uses: go-semantic-release/action@v1 - with: - hooks: goreleaser - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - \ No newline at end of file diff --git a/.github/workflows/go.yml b/.github/workflows/build.yml similarity index 64% rename from .github/workflows/go.yml rename to .github/workflows/build.yml index 706072d7..36559d0d 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/build.yml @@ -1,12 +1,15 @@ # This workflow will build a golang project # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go -name: Go +name: Run test on: push: - branches: [ '*' ] - + branches: + - '*' # matches every branch that doesn't contain a '/' + - '*/*' # matches every branch containing a single '/' + - '**' # matches every branch + - '!master' # excludes master jobs: integration_tests: @@ -23,8 +26,8 @@ jobs: with: go-version: ${{ matrix.go_version }} - - name: Build + - name: Build code run: go build -v ./... - - name: Test + - name: Running test run: go test -v ./...