This repository has been archived by the owner on Jul 20, 2024. It is now read-only.
Merge pull request #36 from takeokunn/dependabot/npm_and_yarn/main/se… #37
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
push: | |
jobs: | |
secretlint: | |
name: Secretlint | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: cache ./node_modules | |
id: cache-npm | |
uses: actions/cache@v3 | |
with: | |
path: ./node_modules | |
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: ${{ runner.os }}-yarn- | |
- name: npm install | |
if: steps.cache-npm.outputs.cache-hit != 'true' | |
run: npm install | |
- name: Run secretlint | |
run: npx secretlint "./*" |