diff --git a/.github/workflows/actionlint.yml b/.github/workflows/actionlint.yml new file mode 100644 index 0000000..c45a43b --- /dev/null +++ b/.github/workflows/actionlint.yml @@ -0,0 +1,22 @@ +name: Actionlint + +on: + push: + branches: [ main ] + paths: + - ".github/workflows/*.ya?ml" + pull_request: + paths: + - ".github/workflows/*.ya?ml" + workflow_dispatch: + +jobs: + actionlint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Run actionlint + run: | + bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) + ./actionlint -color diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 46acdf2..821e92d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,12 +40,14 @@ jobs: steps: - uses: actions/checkout@v3 + with: + path: spirit - name: build-mbed-cli run: | mbed new . mbed deploy - cp .github/workflows/build-mbed/main.cpp . + cp spirit/.github/workflows/build-mbed/main.cpp . mbed compile -t GCC_ARM -m ${{ matrix.target }} --profile ${{ matrix.profile }} build-cli-v2: @@ -61,10 +63,11 @@ jobs: steps: - uses: actions/checkout@v3 + with: + path: spirit - name: build-mbed-tools run: | - cd .. mbed-tools new . cp spirit/.github/workflows/build-mbed/main.cpp . cp spirit/.github/workflows/build-mbed-tools/CMakeLists.txt .