@@ -106,51 +106,50 @@ jobs:
106106 run : goreleaser release --timeout 50m --snapshot --clean --skip-validate --skip-publish --skip-sign -f ./plugins/source/aws/.goreleaser.yaml
107107 env :
108108 GORELEASER_KEY : ${{ secrets.GORELEASER_KEY }}
109- # test-policies:
110- # timeout-minutes: 30
111- # needs: [resolve-runner]
112- # runs-on: ${{ needs.resolve-runner.outputs.runner }}
113- # defaults:
114- # run:
115- # working-directory: ./plugins/source/aws
116- # services:
117- # postgres:
118- # image: postgres:11
119- # env:
120- # POSTGRES_PASSWORD: pass
121- # POSTGRES_USER: postgres
122- # POSTGRES_DB: postgres
123- # ports:
124- # - 5432:5432
125- # # Set health checks to wait until postgres has started
126- # options: >-
127- # --health-cmd pg_isready
128- # --health-interval 10s
129- # --health-timeout 5s
130- # --health-retries 5
131- # steps:
132- # - name: Checkout
133- # uses: actions/checkout@v3
134- # - name: Set up Go 1.x
135- # uses: erezrokah/setup-go@feat/add_cache_prefix
136- # with:
137- # go-version-file: plugins/source/aws/go.mod
138- # cache: true
139- # cache-dependency-path: plugins/source/aws/go.sum
140- # cache-key-prefix: policies-cache-
141- # - name: Build
142- # run: go build .
143- # - name: Setup CloudQuery
144- # uses: cloudquery/setup-cloudquery@v3
145- # with:
146- # version: 'v3.5.0'
147- # - name: Migrate DB
148- # run: cloudquery migrate test/policy_cq_config.yml
149- # env:
150- # CQ_DSN: postgresql://postgres:pass@localhost:5432/postgres
151- # - name: Run all policies
152- # run: cd policies && psql -h localhost -p 5432 -U postgres -d postgres -w -f ./policy.sql
153- # env:
154- # PGPASSWORD: pass
109+ test-policies :
110+ timeout-minutes : 30
111+ runs-on : large-ubuntu-monorepo
112+ defaults :
113+ run :
114+ working-directory : ./plugins/source/aws
115+ services :
116+ postgres :
117+ image : postgres:11
118+ env :
119+ POSTGRES_PASSWORD : pass
120+ POSTGRES_USER : postgres
121+ POSTGRES_DB : postgres
122+ ports :
123+ - 5432:5432
124+ # Set health checks to wait until postgres has started
125+ options : >-
126+ --health-cmd pg_isready
127+ --health-interval 10s
128+ --health-timeout 5s
129+ --health-retries 5
130+ steps :
131+ - name : Checkout
132+ uses : actions/checkout@v3
133+ - name : Set up Go 1.x
134+ uses : erezrokah/setup-go@feat/add_cache_prefix
135+ with :
136+ go-version-file : plugins/source/aws/go.mod
137+ cache : true
138+ cache-dependency-path : plugins/source/aws/go.sum
139+ cache-key-prefix : policies-cache-
140+ - name : Build
141+ run : go build .
142+ - name : Setup CloudQuery
143+ uses : cloudquery/setup-cloudquery@v3
144+ with :
145+ version : ' v3.10.1'
146+ - name : Migrate DB
147+ run : cloudquery migrate test/policy_cq_config.yml
148+ env :
149+ CQ_DSN : postgresql://postgres:pass@localhost:5432/postgres
150+ - name : Run all policies
151+ run : cd policies && psql -h localhost -p 5432 -U postgres -d postgres -w -f ./policy.sql
152+ env :
153+ PGPASSWORD : pass
155154
156155
0 commit comments