Skip to content
This repository has been archived by the owner on Sep 22, 2023. It is now read-only.

chore(ci): Use firefox from CI (#28) #35

chore(ci): Use firefox from CI (#28)

chore(ci): Use firefox from CI (#28) #35

Workflow file for this run

name: CI
on:
push:
branches: ["main"]
pull_request:
types: [opened, synchronize]
merge_group:
env:
CI: 1
jobs:
build:
name: Build and Test
timeout-minutes: 15
runs-on: ubuntu-latest
# To use Remote Caching, uncomment the next lines and follow the steps below.
# env:
# TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
# TURBO_TEAM: ${{ vars.TURBO_TEAM }}
env:
DISPLAY: ":99"
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- uses: pnpm/[email protected]
with:
version: 8.6.3
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- uses: nanasess/setup-chromedriver@v2
- run: |
chromedriver --url-base=/wd/hub &
- uses: browser-actions/setup-firefox@v1
- uses: browser-actions/setup-edge@v1
- name: Test
run: pnpm turbo run test:ci