Skip to content

ci: requires -> require #2

ci: requires -> require

ci: requires -> require #2

Workflow file for this run

name: Default
on:
push:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
concurrency: lint
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref ${{ github.sha }}
- name: Force correct branch on workflow sha
run: git checkout -B ${{ github.ref_name }} ${{ github.sha }}
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: 3.12.6
cache: poetry
- name: Install Dependencies
run: poetry install --no-root --with dev --sync
- name: Lint Code
run: |
poetry run codespell `git ls-files "*.yaml" "*.yml" "*.md" "*.sh"`
poetry run yamllint --strict `git ls-files "*.yaml" "*.yml"`
poetry run mdformat --wrap 79 --number --check `git ls-files "*.md"`
poetry run shellcheck `git ls-files "*.sh"`
test:
runs-on: ubuntu-latest
require: [ lint ]

Check failure on line 40 in .github/workflows/default.yaml

View workflow run for this annotation

GitHub Actions / Default

Invalid workflow file

The workflow is not valid. .github/workflows/default.yaml (Line: 40, Col: 5): Unexpected value 'require' .github/workflows/default.yaml (Line: 68, Col: 5): Unexpected value 'require'
concurrency: test
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref ${{ github.sha }}
- name: Force correct branch on workflow sha
run: git checkout -B ${{ github.ref_name }} ${{ github.sha }}
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: 3.12.6
cache: poetry
- name: Install Dependencies
run: |
./bashdep.sh
poetry install --no-root --with dev --sync
- name: Run Tests
run: ./lib/bashunit --parallel `git ls-files "tests/*.sh"`
release:
runs-on: ubuntu-latest
require: [ test ]
concurrency: release
permissions:
id-token: write
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.sha }}
- name: Force correct branch on workflow sha
run: git checkout -B ${{ github.ref_name }} ${{ github.sha }}
- name: Semantic Version Tagging
uses: python-semantic-release/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
git_committer_name: "OpenFisca Bot"
git_committer_email: "bot+${{ github.sha }}@openfisca.org"