Paste an image into Storage #267
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: ci | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
pull_request_check: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: one-pager-maker | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: oven-sh/setup-bun@v1 | |
- name: install firebase-tools | |
run: bun install -g firebase-tools | |
- name: bun install | |
run: bun install | |
- name: Create .env file | |
shell: bash | |
run: | | |
touch .env | |
echo "VITE_API_KEY=${{ secrets.STAGING_VITE_API_KEY }}" >> .env | |
echo "VITE_AUTH_DOMAIN=${{ secrets.STAGING_VITE_AUTH_DOMAIN }}" >> .env | |
echo "VITE_PROJECT_ID=${{ secrets.STAGING_VITE_PROJECT_ID }}" >> .env | |
echo "VITE_STORAGE_BUCKET=${{ secrets.STAGING_VITE_STORAGE_BUCKET }}" >> .env | |
echo "VITE_MESSAGING_SENDER_ID=${{ secrets.STAGING_VITE_MESSAGING_SENDER_ID }}" >> .env | |
echo "VITE_APP_ID=${{ secrets.STAGING_VITE_APP_ID }}" >> .env | |
echo "VITE_MEASUREMENT_ID=${{ secrets.STAGING_VITE_MEASUREMENT_ID }}" >> .env | |
- name: lint | |
run: bun run lint | |
- name: test | |
run: bun run test-unit | |
- name: build | |
run: bun run build | |
- name: Test Failure | |
uses: rjstone/discord-webhook-notify@v1 | |
if: failure() || cancelled() | |
with: | |
severity: error | |
details: Failed! [URL](${{ github.event.pull_request.html_url }}) | |
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }} |