-
Notifications
You must be signed in to change notification settings - Fork 8
36 lines (35 loc) · 1.16 KB
/
test-against-regression.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
name: Test Against Regression
on:
push:
branches:
- main
pull_request:
types:
- opened
- ready_for_review
- reopened
- synchronize
workflow_dispatch: {}
jobs:
test:
runs-on: ubuntu-latest
container:
image: docker.mirror.hashicorp.services/hashicorp/jsii-terraform
steps:
- name: Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: ensure correct user
run: chown -R root /__w/cdktf-integration-serverless-example/
- name: Install Dependencies
run: yarn
- name: Generate Provider Bindings
run: yarn get
- name: Test
run: yarn test
- name: Comment on failure
if: ${{ failure() && github.event.pull_request }}
env:
PR_ID: ${{ github.event.pull_request.number }}
GIT_BRANCH: ${{ github.ref_name }}
GH_TOKEN: ${{ secrets.TEAM_TF_CDK }}
run: gh pr comment $PR_ID "This test failure could mean that the snapshots need to be regenerated. Run `git checkout $GIT_BRANCH` followed by `yarn test -- --passWithNoTests --updateSnapshot`, and commit & push the results."