Skip to content

[continuous-deploy-fingerprint] Add platform as input #430

[continuous-deploy-fingerprint] Add platform as input

[continuous-deploy-fingerprint] Add platform as input #430

Workflow file for this run

name: review
on:
push:
branches: [main]
pull_request:
types: [opened, synchronize]
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v4
- name: 🏗 Setup runner
uses: ./.github/actions/setup
- name: 📦 Install dependencies
run: bun install
- name: ✅ Lint code
run: bun run lint --max-warnings=0
- name: 🧪 Test code
run: bun run test
- name: 👷 Build code
run: bun run clean && bun run build
- name: 🕵️ Validate build
id: diff
run: |
if [ "$(git diff --ignore-space-at-eol build/ | wc -l)" -gt "0" ]; then
echo "⚠️ Build is outdated"
echo " > run 'bun run clean', 'bun run build', and commit changes"
git diff
exit 1
fi
- name: 🗂 Upload build
uses: actions/upload-artifact@v3
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
with:
name: build
path: build/