chore(deps): update dependency turbo to v1.10.15 (#916) #4481
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Linting / Unit Tests | |
permissions: | |
contents: read | |
id-token: write | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
run-unit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: 'npm' | |
- name: Install Dependencies with NPM | |
id: installation | |
run: npm ci | |
- name: Run Unit Tests (all projects) | |
id: unittest | |
run: npx turbo run test | |
env: | |
NODE_OPTIONS: --max-old-space-size=4096 | |
run-convert-e2e-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: 'npm' | |
- name: Install Dependencies with NPM | |
id: installation | |
run: npm ci | |
- name: Configure AWS creds | |
id: config-aws-creds | |
uses: aws-actions/configure-aws-credentials@v3 | |
with: | |
role-to-assume: arn:aws:iam::642712255693:role/github-actions | |
role-duration-seconds: 3600 | |
aws-region: us-east-1 | |
- name: Clean up convert e2e tests | |
run: cd tools/delete-stepfunctions && npm ci && npx ts-node delete-all.ts | |
- name: Run convert e2e tests | |
id: run-convert-e2e-tests | |
run: npx turbo run test:e2e --filter=@ts2asl/convert | |
run-cdk-e2e-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: 'npm' | |
- name: Install Dependencies with NPM | |
id: installation | |
run: npm ci | |
- name: Configure AWS creds | |
id: config-aws-creds | |
uses: aws-actions/configure-aws-credentials@v3 | |
with: | |
role-to-assume: arn:aws:iam::642712255693:role/github-actions | |
role-duration-seconds: 3600 | |
aws-region: us-east-1 | |
- name: Run cdk e2e tests | |
id: run-cdk-e2e-tests | |
run: npx turbo run test:e2e --filter=cdk-tests | |
pr-success: | |
needs: | |
- run-unit-tests | |
- run-convert-e2e-tests | |
- run-cdk-e2e-tests | |
# if pr-success is skipped, GH branch protection will not consider it a failure, we need to check the result of each dependency ourself | |
# see: https://brunoscheufler.com/blog/2022-04-09-the-required-github-status-check-that-wasnt | |
if: always() | |
steps: | |
- if: needs.run-unit-tests.result == 'failure' | |
run: echo "run-unit-tests job failed, setting the failure() bit" && exit 1 | |
- if: needs.run-convert-e2e-tests.result == 'failure' | |
run: echo "run-convert-e2e-tests job failed, setting the failure() bit" && exit 1 | |
- if: needs.run-cdk-e2e-tests.result == 'failure' | |
run: echo "run-cdk-e2e-tests job failed, setting the failure() bit" && exit 1 | |
- if: success() | |
run: echo "all dependencies succeeded" | |
runs-on: ubuntu-latest |