diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml deleted file mode 100644 index 29d2005..0000000 --- a/.github/workflows/pr-checks.yml +++ /dev/null @@ -1,21 +0,0 @@ -on: - pull_request: - branches: - - main -name: Tests for pull requests -jobs: - test: - strategy: - matrix: - go-version: [1.16.x] - os: [ubuntu-latest] - runs-on: ${{ matrix.os }} - steps: - - name: Install Go - uses: actions/setup-go@v2 - with: - go-version: ${{ matrix.go-version }} - - name: Checkout code - uses: actions/checkout@v2 - - name: Test and Build - run: make all diff --git a/.github/workflows/main-branch.yml b/.github/workflows/test-and-build.yaml similarity index 70% rename from .github/workflows/main-branch.yml rename to .github/workflows/test-and-build.yaml index 7e7e2d3..219c93e 100644 --- a/.github/workflows/main-branch.yml +++ b/.github/workflows/test-and-build.yaml @@ -2,21 +2,24 @@ on: push: branches: - main + pull_request: + branches: + - main + name: Tests/Jobs for main branch merges jobs: test: strategy: matrix: - go-version: [ 1.16.x ] + go-version: [ 1.16, 1.17, 1.18 ] os: [ ubuntu-latest ] runs-on: ${{ matrix.os }} steps: - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: ${{ matrix.go-version }} - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Test and Build run: make all -