ci: changes. #19
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: E2E Tests | |
on: | |
push: | |
branches: | |
- develop | |
workflow_dispatch: | |
jobs: | |
test: | |
timeout-minutes: 60 | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3.5.2 | |
- name: Install docker | |
run: | | |
brew install docker | |
colima start | |
- name: Apt Pkgs | |
if: runner.os == 'ubuntu' | |
uses: awalsh128/cache-apt-pkgs-action@latest | |
with: | |
packages: libnss3-tools | |
version: 1.3.1 | |
- name: Install mkcert | |
if: runner.os == 'ubuntu' | |
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 mkcert (macos) | |
if: runner.os == 'macos' | |
run: | | |
brew install mkcert | |
brew install nss | |
- 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/setup-node@v3.6.0 | |
with: | |
node-version: '20.10.0' | |
- name: Install Dependencies | |
run: npm ci | |
- name: Install Playwright | |
run: npx playwright install --with-deps | |
- name: Run Tests | |
run: npm test | |
env: | |
CI: true | |
SERVER_NAME: localhost | |
HOST_NAME: localhost | |
UPSTREAM_API_HOST: api | |
SSL_CERT_PATH: /etc/nginx/certs/busmap.localhost.pem | |
SSL_KEY_PATH: /etc/nginx/certs/busmap.localhost-key.pem | |
BM_REDIS_HOST: redis://session | |
BM_SESSION_STORE: redis | |
BM_COOKIE_SECURE: true | |
BM_COOKIE_SAMESITE: strict | |
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 }} |