Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/lint-github-actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: 🔍 Lint GitHub Actions

on:
push:
branches:
- main
- beta
paths:
- ".github/workflows/**/*.yml"
- ".github/workflows/**/*.yaml"
pull_request:
paths:
- ".github/workflows/**/*.yml"
- ".github/workflows/**/*.yaml"
workflow_dispatch: {}

permissions: {}

jobs:
lint-github-actions:
name: 🌈 zizmor
runs-on: ubuntu-latest
permissions:
contents: read

steps:
- name: 📥 Checkout repository
uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # main
with:
persist-credentials: false

- name: 🌈 Run zizmor
uses: zizmorcore/zizmor-action@b1d7e1fb5de872772f31590499237e7cce841e8e # v0.5.3
with:
advanced-security: false
16 changes: 10 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@ on:
pull_request: {}
workflow_dispatch: {}

permissions:
actions: write
contents: read
permissions: {}

jobs:
test:
name: 🧪 Test
runs-on: ubuntu-latest
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
permissions:
actions: write
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -24,22 +26,24 @@ jobs:
steps:
- name: 📥 Checkout repository
uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # main
with:
persist-credentials: false

- name: 🟢 Setup Node.js
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # main
uses: actions/setup-node@670825a89dc0abd596e7a3abd0f5e3f6e5faf37c # main
with:
node-version-file: ".tool-versions"
cache: "npm"

- name: 🗄 Cache node_modules
id: cache-node_modules
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # main
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # main
with:
path: "**/node_modules"
key: node_modules-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}

- name: 🗄 Cache .eslintcache
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # main
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # main
with:
path: .eslintcache
key: eslintcache-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
Expand Down