Skip to content

feat(ci): add bash as shell #13

feat(ci): add bash as shell

feat(ci): add bash as shell #13

Workflow file for this run

on:
push:
branches:
- josh/*
name: ci
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- uses: ./.github/actions/toolchain
shell: bash

Check failure on line 14 in .github/workflows/ci-test.yml

View workflow run for this annotation

GitHub Actions / ci

Invalid workflow file

The workflow is not valid. .github/workflows/ci-test.yml (Line: 14, Col: 9): Unexpected value 'shell' .github/workflows/ci-test.yml (Line: 24, Col: 9): Unexpected value 'shell'
- name: Run tests
run: cargo test
spec-test:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- uses: ./.github/actions/toolchain
shell: bash
- name: Run tests
run: cargo test
- uses: pdm-project/setup-pdm@v3
name: Setup PDM
with:
python-version: 3.11.2
architecture: x64
- name: run spec tests
run: ./test/spec-tests/ci/run-spec-tests.sh
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- uses: ./.github/actions/toolchain
shell: bash
with:
rust_components: clippy
- name: Install toolchain (nightly)
run: rustup toolchain add nightly --component rustfmt --profile minimal
# Build to generate the ABI bindings.
- name: cargo build
uses: actions-rs/cargo@v1
with:
command: build
- name: cargo +nightly fmt
uses: actions-rs/cargo@v1
with:
command: fmt
toolchain: nightly
args: --all --check
- name: cargo clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all --all-features -- -D warnings
- name: buf setup
uses: bufbuild/buf-setup-action@v1
- name: buf lint
uses: bufbuild/buf-lint-action@v1
# - name: buf breaking
# uses: bufbuild/buf-breaking-action@v1
# with:
# # The 'main' branch of the GitHub repository that defines the module.
# against: "https://github.com/${GITHUB_REPOSITORY}.git#branch=main"
cog_check_job:
runs-on: ubuntu-latest
name: check conventional commit compliance
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
# pick the pr HEAD instead of the merge commit
ref: ${{ github.event.pull_request.head.sha }}
- name: Conventional commit check
uses: cocogitto/cocogitto-action@v3
with:
check-latest-tag-only: true