build(deps): bump cross-spawn from 7.0.3 to 7.0.6 #83
Workflow file for this run
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: pull-request | |
on: | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 16 | |
- name: Install dependencies | |
run: yarn install | |
- name: Lint | |
run: yarn lint | |
- name: Unit test | |
run: yarn test | |
- name: Rebuild the dist/ directory | |
run: yarn build | |
- name: Compare the expected and actual dist/ directories | |
run: | | |
if [ "$(git diff --ignore-space-at-eol ./dist/ | wc -l)" -gt "0" ]; then | |
echo "Detected uncommitted changes after build within the ./dist directory" | |
exit 1 | |
fi | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
- name: CloudFormation Linter | |
run: | | |
pip install cfn-lint | |
shopt -s globstar # enable globbing | |
cfn-lint -t ./examples/*.yaml | |
- name: GitHub Workflow Linter | |
run: docker run --rm -v "$(pwd)":/repo --workdir /repo rhysd/actionlint:latest -color | |
integration-test: | |
runs-on: ubuntu-latest | |
needs: [ test ] | |
permissions: | |
id-token: write # required for OIDC | |
contents: read | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: AWS API Gateway Request | |
id: api-request | |
uses: ./ | |
with: | |
aws-role-to-assume: ${{ secrets.AWS_ASSUME_ROLE }} | |
aws-region: us-east-1 | |
url: ${{ secrets.AWS_APIGW_ENDPOINT }}/live/auth/iam | |
# payload: "{}" | |
method: GET | |
headers: | | |
content-type: application/json | |
# max-retries: 3 | |
- name: Test API Response | |
uses: actions/github-script@v7 | |
with: | |
script: | | |
const statusCode = '${{ steps.api-request.outputs.status-code }}' | |
const headers = JSON.parse('${{ steps.api-request.outputs.headers }}') | |
const body = JSON.parse('${{ steps.api-request.outputs.body }}') | |
if (statusCode !== '200') core.setFailed('status code did not equal 200') | |
if (Object.keys(headers).length < 6) core.setFailed('headers key length was less than expected') | |
if (body.msg !== 'Hello from API Gateway') core.setFailed('body did not have expected msg') |