ff0f797d20
The action is a GitHub Marketplace action that doesn't exist on self-hosted Gitea instances. Replace it with the standard curl-based Bun installation method and add ~/.bun/bin to GITHUB_PATH.
26 lines
464 B
YAML
26 lines
464 B
YAML
name: Validate
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Bun
|
|
run: curl -fsSL https://bun.sh/install | bash
|
|
- name: Add Bun to PATH
|
|
run: echo "$HOME/.bun/bin" >> $GITHUB_PATH
|
|
|
|
- name: Install dependencies
|
|
run: bun install
|
|
|
|
- name: Run tests
|
|
run: bun test
|