Skip to content

ci: updates.

ci: updates. #10

Workflow file for this run

name: E2E Tests
on:
push:
branches:
- develop
workflow_dispatch:
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Apt Pkgs
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: libnss3-tools
version: 1.3.1
- name: Install mkcert
run: |
curl -JLO "https://dl.filippo.io/mkcert/latest?for=linux/amd64"
chmod +x mkcert-v*-linux-amd64
sudo cp mkcert-v*-linux-amd64 /usr/local/bin/mkcert
- name: Install Certificates
run: |
mkcert -install
mkcert -key-file busmap.localhost-key.pem -cert-file busmap.localhost.pem busmap.localhost localhost
cp *.pem packages/web/certs
- name: Setup Node
uses: actions/[email protected]
with:
node-version: '20.10.0'
- name: Install Dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install chrome webkit
- name: Run Tests
run: npm test
env:
CI: true
SERVER_NAME: localhost
HOST_NAME: localhost
UPSTREAM_API_HOST: api
SSL_CERT_PATH: /etc/ci/file.pem
SSL_KEY_PATH: /etc/ci/file.key
BM_COOKIE_SECRET: ${{ secrets.BM_COOKIE_SECRET }}
BM_POSTGRES_PASSWORD: ${{ secrets.BM_POSTGRES_PASSWORD }}
BM_POSTGRES_USER: ${{ secrets.BM_POSTGRES_USER }}
BM_POSTGRES_DB: ${{ secrets.BM_POSTGRES_DB }}
SSO_GOOG_CLIENT_ID: ${{ secrets.SSO_GOOG_CLIENT_ID }}
SSO_GOOG_CLIENT_SECRET: ${{ secrets.SSO_GOOG_CLIENT_SECRET }}