chore: upgrade from eslint 8 to 9 #279
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: Pull Request | |
on: | |
pull_request: | |
paths: | |
- 'services/**' | |
- 'bundestag.io/**' | |
- 'democracy/**' | |
branches: | |
- 'master' | |
jobs: | |
analyse-changed-services: | |
runs-on: ubuntu-latest | |
outputs: | |
CHANGED_PACKAGES: ${{ steps.changed-packages.outputs.CHANGED_PACKAGES }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '18' | |
- name: Get PNPM version from package.json | |
id: pnpm-version | |
run: | | |
PNPM_VERSION=$(node -p "require('./package.json').packageManager.replace('pnpm@', '')") | |
echo "PNPM_VERSION=$PNPM_VERSION" >> $GITHUB_OUTPUT | |
echo "Using PNPM version: $PNPM_VERSION" | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: ${{ steps.pnpm-version.outputs.PNPM_VERSION }} | |
- run: pnpm --version | |
- name: Analyze changed services | |
run: | | |
pnpm list -r --json --filter "...[origin/master]" --changed-files-ignore-pattern="**/(garden.yml|.dockerignore)" | jq '[.[] | select(.private == false) | {name, path}]' > ./tmp.json | |
cat ./tmp.json | |
CHANGED_PACKAGES=$(jq '[.[] | .name]' ./tmp.json) | |
echo CHANGED_PACKAGES=$CHANGED_PACKAGES >> $GITHUB_OUTPUT | |
echo CHANGED_PACKAGES=$CHANGED_PACKAGES | |
id: changed-packages | |
build-and-push: | |
uses: ./.github/workflows/build-and-push.yaml | |
needs: analyse-changed-services | |
with: | |
changedPackages: ${{ needs.analyse-changed-services.outputs.CHANGED_PACKAGES }} | |
secrets: | |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} |