Skip to content

Move items and lastBuildDate into channel #130

Move items and lastBuildDate into channel

Move items and lastBuildDate into channel #130

Workflow file for this run

name: End-to-end tests
on:
push:
branches:
- "**"
pull_request:
jobs:
test-e2e:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: bahmutov/npm-install@v1
with:
useLockFile: false
- name: Create test private key for signing alerts
run: ssh-keygen -m PKCS8 -t ecdsa -f $(pwd)/test-key
- name: Start Docker containers for testing
run: docker-compose -f docker-compose-test-e2e.yml up -d
- uses: actions/cache@v3
with:
path: ${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.json') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.json') }}-
- name: Build frontend
run: npm run build
env:
NODE_ENV: test
- name: Run end-to-end tests
run: |
# Run Next.js frontend in background
npm run start &
npm run test:e2e
env:
NODE_ENV: test
PRIVATE_KEY_FILENAME: test-key