forked from cloudquery/cloudquery
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (45 loc) · 1.18 KB
/
Copy pathdest_test.yml
File metadata and controls
50 lines (45 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Destination Plugin Test Workflow
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
paths:
- "plugins/destination/test/**"
- ".github/workflows/dest_test.yml"
push:
branches:
- main
paths:
- "plugins/destination/test/**"
- ".github/workflows/dest_test.yml"
permissions:
contents: read
jobs:
plugins-destination-test:
timeout-minutes: 30
name: "plugins/destination/test"
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./plugins/destination/test
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 2
- name: Set up Go 1.x
uses: actions/setup-go@v6
with:
go-version-file: plugins/destination/test/go.mod
cache: true
cache-dependency-path: plugins/destination/test/go.sum
- name: golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: v2.8.0
working-directory: plugins/destination/test
args: "--config ../../.golangci.yml"
- name: Build
run: go build .
- name: Test
run: make test