Skip to content

Add test CloudFront keys #23

Add test CloudFront keys

Add test CloudFront keys #23

Workflow file for this run

name: Test
on: [pull_request]
jobs:
test:
if: github.event.ref != 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run tests
run: |
cp .env.ci .env
docker compose run --rm -e JWT=${JWT} spider sh -c "npm ci && npm run test"
env:
JWT: ${{ secrets.JWT }}
# Use mock AWS CloudFront keys, these do not grant permission to anything.
AWS_CLOUDFRONT_PRIVATE_KEY: ${{ secrets.TEST_AWS_CLOUDFRONT_PRIVATE_KEY }}
AWS_CLOUDFRONT_PUBLIC_KEY: ${{ secrets.TEST_AWS_CLOUDFRONT_PUBLIC_KEY }}
AWS_CLOUDFRONT_PUBLIC_KEYS_OBJECT: ${{ secrets.TEST_AWS_CLOUDFRONT_PUBLIC_KEYS_OBJECT }}