diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a9d1369..d179fb8 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -3,6 +3,7 @@ name: Continuous Integration on: push: branches: + - main - master pull_request: @@ -12,21 +13,20 @@ jobs: timeout-minutes: 10 strategy: matrix: - go-version: [1.13.x, 1.14.x, 1.15.x] + go-version: [1.13.x, 1.18.x, 1.19.x] platform: [ubuntu-latest] runs-on: ${{ matrix.platform }} steps: - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: go-version: ${{ matrix.go-version }} - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Validate headers + if: startsWith(matrix.go-version, '1.13') == false run: | - pushd $(mktemp -d) \ - && go get -u github.com/kunalkushwaha/ltag \ - && popd \ + go install github.com/kunalkushwaha/ltag@latest \ && ./scripts/validate/fileheader - name: Test run: go test -v ./...