diff --git a/.github/workflows/action-lint.yml b/.github/workflows/action-lint.yml index 9cb65df..f28f236 100644 --- a/.github/workflows/action-lint.yml +++ b/.github/workflows/action-lint.yml @@ -1,7 +1,5 @@ name: reviewdog -on: - push: - branches: [] +on: [pull_request] jobs: actionlint: permissions: @@ -12,5 +10,4 @@ jobs: - uses: actions/checkout@v4 - uses: reviewdog/action-actionlint@v1 with: - level: info - github_token: ${{ github.token }} + reporter: github-pr-review diff --git a/.github/workflows/afn.yaml b/.github/workflows/afn.yaml new file mode 100644 index 0000000..5c7b88e --- /dev/null +++ b/.github/workflows/afn.yaml @@ -0,0 +1,21 @@ +# this is a example of broken workflow + +on: + push: + branch: main + tags: + - 'v\d+' +jobs: + test: + strategy: + matrix: + os: [macos-latest, linux-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + - uses: actions/cache@v2 + with: + path: ~/.npm + key: ${{ matrix.platform }}-node-${{ hashFiles('**/package-lock.json') }} + if: ${{ github.repository.permissions.admin == true }} + - run: npm install && npm test