Merge pull request #3 from alpgul/Test #1
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: Build and Deploy Changes | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build-app: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Setup Bun | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: latest | |
- name: Install packages | |
run: bun i | |
shell: bash | |
- name: Create Screenshots Directory | |
run: mkdir screenshots | |
- name: Test | |
run: bun run test | |
shell: bash | |
- name: Upload Browser Screenshots | |
uses: actions/upload-artifact@v4 | |
with: | |
name: browser-screenshots | |
path: screenshots/ |