forked from cloudquery/cloudquery
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (60 loc) · 1.81 KB
/
source_typeform.yml
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Source Plugin Typeform Workflow
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
paths:
- "plugins/source/typeform/**"
- ".github/workflows/source_typeform.yml"
push:
branches:
- main
paths:
- "plugins/source/typeform/**"
- ".github/workflows/source_typeform.yml"
jobs:
plugins-source-typeform:
timeout-minutes: 30
name: "plugins/source/typeform"
runs-on: large-ubuntu-monorepo
defaults:
run:
working-directory: ./plugins/source/typeform
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: pip install -r requirements.txt
- name: Check formatting
run: make fmt-check
- name: Setup CloudQuery
if: github.event_name == 'pull_request'
uses: cloudquery/setup-cloudquery@v3
with:
version: 'v3.13.0'
- name: gen
if: github.event_name == 'pull_request'
run: make gen
- name: Fail if generation updated files
if: github.event_name == 'pull_request'
run: test "$(git status -s | wc -l)" -eq 0 || (git status -s; exit 1)
- name: Run tests
run: make test
validate-release:
timeout-minutes: 10
runs-on: large-ubuntu-monorepo
env:
IMAGE_NAME_PREFIX: cloudquery
REGISTRY: ghcr.io
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@4c0219f9ac95b02789c1075625400b2acbff50b1
- name: Build and push Docker image
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: "{{defaultContext}}:plugins/source/typeform"
load: true