From 58e1402c10fc7c15d80598fc5e4c72ecb1b48080 Mon Sep 17 00:00:00 2001 From: "pablo.garcia.almis" Date: Sun, 14 Apr 2024 13:35:09 +0200 Subject: [PATCH] feat: Try to validate with hacs validation chore: bump github action versions to 4x --- .github/workflows/ci.yml | 12 ++++++------ .github/workflows/release.yml | 6 +++--- .github/workflows/validate.yml | 18 ++++++++++++++++++ 3 files changed, 27 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/validate.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cfe57f1..84407d5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,13 +12,13 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4.1.0 - name: Use Node.js 208.x - uses: actions/setup-node@v3.6.0 + uses: actions/setup-node@v4.0.2 with: node-version: 20.x - name: Cache Node.js modules - uses: actions/cache@v3 + uses: actions/cache@v4.0.2 with: path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS key: ${{ runner.OS }}-node-20.x-${{ hashFiles('**/package-lock.json') }} @@ -37,13 +37,13 @@ jobs: node-version: [20.x] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4.1.0 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3.6.0 + uses: actions/setup-node@v4.0.2 with: node-version: ${{ matrix.node-version }} - name: Cache Node.js modules - uses: actions/cache@v3 + uses: actions/cache@v4.0.2 with: path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS key: ${{ runner.OS }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 42f513c..002ff55 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,16 +13,16 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4.1.0 with: fetch-depth: 0 persist-credentials: false - name: Use Node.js 20.x - uses: actions/setup-node@v3 + uses: actions/setup-node@v4.0.2 with: node-version: 20.x - name: Cache Node.js modules - uses: actions/cache@v3 + uses: actions/cache@v4.0.2 with: path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS key: ${{ runner.OS }}-node-20.x-${{ hashFiles('**/package-lock.json') }} diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml new file mode 100644 index 0000000..5e2cffd --- /dev/null +++ b/.github/workflows/validate.yml @@ -0,0 +1,18 @@ +name: "HACS Validate Action" + +on: + push: + pull_request: + schedule: + - cron: "0 0 * * *" + +jobs: + validate-hacs: + name: HACS validation + runs-on: "ubuntu-latest" + steps: + - uses: "actions/checkout@v4.1.0" + - name: HACS validation + uses: "hacs/action@main" + with: + category: "plugin" \ No newline at end of file