ci(docs): fix paths for filtering #148
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] | |
push: | |
branches: [main] | |
workflow_call: | |
workflow_dispatch: | |
env: | |
TASK_X_REMOTE_TASKFILES: 1 | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout | |
uses: actions/checkout@main | |
- name: Install tools | |
run: | | |
echo "/home/linuxbrew/.linuxbrew/bin" >> "$GITHUB_PATH" | |
/home/linuxbrew/.linuxbrew/bin/brew install \ | |
actionlint \ | |
check-jsonschema \ | |
fd \ | |
go-task \ | |
jq \ | |
prettier \ | |
shellcheck \ | |
shfmt \ | |
uv \ | |
yamlfmt \ | |
yamllint \ | |
- name: Lint | |
run: task lint --yes | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout | |
uses: actions/checkout@main | |
- name: Install tools | |
run: | | |
echo "$(pwd)/.venv/bin" >> "$GITHUB_PATH" | |
echo "/home/linuxbrew/.linuxbrew/bin" >> "$GITHUB_PATH" | |
/home/linuxbrew/.linuxbrew/bin/brew install \ | |
go-task \ | |
uv \ | |
- name: Install dependencies | |
run: task sync --yes | |
- name: Test | |
run: task test --yes | |
- name: Build | |
run: task build --yes | |
- name: Upload results to Codecov | |
uses: codecov/codecov-action@main | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
- name: Upload test results to Codecov | |
if: ${{ !cancelled() }} | |
uses: codecov/test-results-action@main | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
check: | |
name: Check | |
permissions: {} | |
runs-on: ubuntu-latest | |
needs: [lint, test] | |
if: always() | |
steps: | |
- name: Ensure no jobs failed | |
run: |- | |
[ "${{ !contains(needs.*.result, 'failure') }}" = "true" ] || exit 1 |