Skip to content

docs: fix CI badge in the README.md #14

docs: fix CI badge in the README.md

docs: fix CI badge in the README.md #14

Workflow file for this run

name: CI
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v4.1.1
- name: Setup pnpm
uses: pnpm/action-setup@v2.4.0
with:
version: 8
- name: Setup Node
uses: actions/setup-node@v4.0.1
with:
node-version: 18
cache: pnpm
- name: Install pnpm dependencies
run: pnpm install
- name: Setup Python
uses: actions/setup-python@v5.0.0
with:
python-version: '3.9'
- name: Install PlatformIO
run: |
python -m pip install --upgrade pip
pip install platformio
- name: Copy custom board files
run: |
mkdir -p ~/.platformio/platforms/ststm32/boards/
cp -R ./boards/* ~/.platformio/platforms/ststm32/boards/
# TODO: run linter?
- name: Build
run: pio run
# TODO: run tests
- name: Semantic Release
if: github.ref == 'refs/heads/main'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release