Skip to content

ci: remove test:e2e from workflow #208

ci: remove test:e2e from workflow

ci: remove test:e2e from workflow #208

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
jobs:
build:
strategy:
matrix:
node: [20]
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest-xlarge]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
id: yarn-cache
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: yarn install
- name: Build the library
run: yarn build
- name: Run unit tests
run: yarn test
# Only trigger deploy if previous steps pass and branch is main
- name: Deploy docs
if: matrix.os == 'macos-latest' && github.ref == 'refs/heads/main'
env:
deploy_url: ${{ secrets.RENDER_DEPLOY_HOOK_URL }}
run: curl "$deploy_url"