From b1a2277e795f27cb05cdbb6069dd2b472deab915 Mon Sep 17 00:00:00 2001 From: Piotr Rogowski Date: Tue, 18 Oct 2022 13:18:39 +0200 Subject: [PATCH] Add `Validate INI` action (#945) --- .github/workflows/validate-ini.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/validate-ini.yml diff --git a/.github/workflows/validate-ini.yml b/.github/workflows/validate-ini.yml new file mode 100644 index 00000000..bb378ad2 --- /dev/null +++ b/.github/workflows/validate-ini.yml @@ -0,0 +1,25 @@ +name: Validate INI + +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + validate: + runs-on: ubuntu-latest + env: + NPM_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Authenticate + run: echo -e "@hyper-tuner:registry=https://npm.pkg.github.com\n//npm.pkg.github.com/:_authToken=${NPM_GITHUB_TOKEN}" > .npmrc + - name: Validate + run: npx -y hyper-tuner/ini validate reference/speeduino.ini