feat(git): more branch operations #223
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: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
permissions: {} | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup | |
uses: denoland/setup-deno@v2 | |
- name: Test | |
run: deno task lint | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup | |
uses: denoland/setup-deno@v2 | |
- name: Git | |
run: | | |
dir=$(mktemp -d) | |
cd $dir | |
git init | |
git config user.name "GitHub Actions" | |
git config user.email "<>" | |
git commit -m "test" --allow-empty | |
git branch --all "--format=%(refname:short)" | |
- name: Test | |
run: deno task test --coverage | |
- name: Coverage | |
run: deno coverage --lcov --output=cov.lcov | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v5 | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup | |
uses: denoland/setup-deno@v2 | |
- name: Build | |
run: deno task forge compile |