Skip to content

fix: adjust cache for node setup #171

fix: adjust cache for node setup

fix: adjust cache for node setup #171

name: "CI assign project"
on:
pull_request:
types: [opened, synchronize, edited, closed]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
assign-project-changed:
name: Assign project changed
runs-on: ubuntu-latest
outputs:
changed: ${{ steps.changed-assign-project.outputs.any_changed }}
steps:
- uses: actions/checkout@v4
- name: Change assign project
id: changed-assign-project
uses: tj-actions/[email protected]
with:
files: |
**/gh-projects/assign-to-project/**/*
lint:
name: Lint
runs-on: ubuntu-latest
# Avoid running this if no files under assign-to-project was changed
needs: assign-project-changed
if: ${{ needs.assign-project-changed.outputs.changed == 'true' }}
steps:
- uses: actions/checkout@v4
- uses: ./setups/node
- run: |
npm install
npm run lint
working-directory: ./gh-projects/assign-to-project
test:
name: Run tests
runs-on: ubuntu-latest
# Avoid running this if no files under assign-to-project was changed
needs: assign-project-changed
if: ${{ needs.assign-project-changed.outputs.changed == 'true' }}
steps:
- uses: actions/checkout@v4
- uses: ./setups/node
- name: Run tests
run: |
npm install
npm run test
working-directory: ./gh-projects/assign-to-project