feat: bun #1158
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
# https://docs.github.com/en/free-pro-team@latest/actions/reference/context-and-expression-syntax-for-github-actions | |
name: Integration Tests | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: | |
- "**" | |
jobs: | |
cypress-run: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout | |
- name: Checkout | |
uses: actions/checkout@v2 | |
# Use Bun | |
- name: Use Bun | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: latest | |
# Install | |
- name: Install | |
run: bun install | |
# Build | |
- name: Build | |
run: bun run build | |
# Install bun dependencies, cache them correctly | |
# and run all Cypress tests | |
- name: Cypress run | |
uses: cypress-io/github-action@v5 | |
with: | |
start: bun run serve:build | |
- name: Upload Cypress Videos | |
uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: cypress-videos | |
path: cypress/videos | |
- name: Upload Cypress Screenshots | |
uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: cypress-screenshots | |
path: cypress/screenshots |