chore(deps): update dependency @swc/core to ^1.15.46 #3257
This file contains hidden or 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: Lint and Test | |
| on: | |
| pull_request: | |
| branches-ignore: ['main'] | |
| push: | |
| branches-ignore: ['main'] | |
| env: | |
| REGISTRY: ghcr.io | |
| IMAGE_NAME: ${{ github.repository }} | |
| concurrency: | |
| group: credo-ts-${{ github.ref }}-${{ github.repository }}-${{ github.event_name }} | |
| cancel-in-progress: true | |
| jobs: | |
| static-checks: | |
| uses: digicatapult/shared-workflows/.github/workflows/static-checks-npm.yml@main | |
| permissions: | |
| security-events: write | |
| with: | |
| enable_semgrep_action: true | |
| enable_trufflehog_action: true | |
| trufflehog_extra_args: '--results=verified,unknown --log-level=2' | |
| unit-tests: | |
| uses: digicatapult/shared-workflows/.github/workflows/tests-npm.yml@main | |
| permissions: | |
| pull-requests: write | |
| with: | |
| coverage: true | |
| docker_compose_file: '' | |
| pre_test_command: 'npm run build' | |
| tests: '["test:unit"]' | |
| integration-tests: | |
| name: 'Run integration tests' | |
| permissions: | |
| packages: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 'Login to GitHub Container Registry' | |
| uses: docker/login-action@v4 | |
| with: | |
| registry: ${{ env.REGISTRY }} | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Setup Docker Buildx | |
| id: buildx | |
| uses: docker/setup-buildx-action@v4 | |
| with: | |
| buildkitd-flags: '--debug' | |
| - uses: actions/checkout@v7 | |
| - name: Install mkcert | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libnss3-tools mkcert | |
| - name: Generate HTTPS certificates | |
| run: bash scripts/setup-certs.sh | |
| - name: Set root CA path | |
| run: echo "NODE_EXTRA_CA_CERTS=$(mkcert -CAROOT)/rootCA.pem" >> $GITHUB_ENV | |
| - name: Build testnet and integration images | |
| uses: docker/bake-action@v7 | |
| with: | |
| builder: ${{ steps.buildx.outputs.name }} | |
| files: | | |
| ./docker-compose-testnet.yml | |
| ./docker-compose-integration-tests.yml | |
| set: | | |
| *.cache-from=type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | |
| *.cache-to=type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }},mode=max | |
| load: true | |
| push: false | |
| - name: Run integration tests | |
| run: | | |
| docker compose \ | |
| -f docker-compose-testnet.yml \ | |
| -f docker-compose-integration-tests.yml \ | |
| up --exit-code-from integration-tests | |
| build-docker: | |
| needs: | |
| - static-checks | |
| - unit-tests | |
| - integration-tests | |
| uses: digicatapult/shared-workflows/.github/workflows/build-docker.yml@main | |
| permissions: | |
| contents: read | |
| packages: write | |
| security-events: write | |
| with: | |
| scan_container: true | |
| generate-sbom-npm: | |
| needs: | |
| - build-docker | |
| uses: digicatapult/shared-workflows/.github/workflows/generate-sbom-npm.yml@main | |
| permissions: {} | |
| with: | |
| additional_args: "--ignore-npm-errors" |