diff --git a/.github/workflows/README b/.github/workflows/README new file mode 100644 index 00000000..d52a74c0 --- /dev/null +++ b/.github/workflows/README @@ -0,0 +1 @@ +All files in this folder were created and synced from cloudquery/.github \ No newline at end of file diff --git a/.github/workflows/add_tags.yml b/.github/workflows/add_tags.yml deleted file mode 100644 index ab03afe6..00000000 --- a/.github/workflows/add_tags.yml +++ /dev/null @@ -1,16 +0,0 @@ -# DONT EDIT. This file is synced from https://github.com/cloudquery/.github/ -# Warning, do not check out untrusted code with -# the pull_request_target event. -# the current workflow IS safe as long as you dont checkout untrusted code -# https://nathandavison.com/blog/github-actions-and-the-threat-of-malicious-pull-requests -on: - pull_request_target: - types: [opened, edited] -name: conventional-release-labels -jobs: - label: - runs-on: ubuntu-latest - steps: - - uses: bcoe/conventional-release-labels@v1 - with: - type_labels: '{ "feat": "feat", "fix": "fix", "docs": "docs", "chore": "chore", "enhancement": "enhancement", "ci": "ci", "refactor": "refactor", "test": "test", "breaking": "breaking" }' diff --git a/.github/workflows/lint_golang.yml b/.github/workflows/lint_golang.yml index 717ee8f9..7a85ce66 100644 --- a/.github/workflows/lint_golang.yml +++ b/.github/workflows/lint_golang.yml @@ -30,5 +30,5 @@ jobs: if: steps.changes.outputs.src == 'true' || github.event_name != 'pull_request' uses: golangci/golangci-lint-action@v3 with: - version: v1.46.1 + version: v1.46.2 args: --timeout 10m --verbose \ No newline at end of file diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index 867d69ee..7215684e 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -10,8 +10,8 @@ jobs: unitests: strategy: matrix: - dbversion: ['postgres:latest'] - go: ['1.16'] + dbversion: ['postgres:10'] + go: ['1.17'] platform: [ ubuntu-latest] runs-on: ${{ matrix.platform }} services: @@ -31,11 +31,26 @@ jobs: --health-retries 5 steps: - name: Set up Go 1.x - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: - go-version: ^1.16 + go-version: ^${{ matrix.go }} - name: Check out code into the Go module directory - uses: actions/checkout@v2 + uses: actions/checkout@v3 + - uses: actions/cache@v3 + with: + # In order: + # * Module download cache + # * Build cache (Linux) + # * Build cache (Mac) + # * Build cache (Windows) + path: | + ~/go/pkg/mod + ~/.cache/go-build + ~/Library/Caches/go-build + ~\AppData\Local\go-build + key: ${{ runner.os }}-go-${{ matrix.go }}-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go-${{ matrix.go }}- - run: go mod download - name: Test run: go test -v ./...