Skip to content

New OpEx Dashboard Reusable Workflow #1155

New OpEx Dashboard Reusable Workflow

New OpEx Dashboard Reusable Workflow #1155

Workflow file for this run

name: "Code Review"
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize]
jobs:
ci:
if: ${{ github.actor != 'dx-pagopa-bot' }}
runs-on: ubuntu-latest
permissions:
contents: "read"
actions: "read"
pull-requests: "read"
steps:
- name: Check out repository
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
with:
fetch-depth: 0
filter: tree:0
- name: Setup Node.js
uses: pagopa/dx/.github/actions/node-setup@main
- name: Setup Go
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
with:
go-version-file: "go.work"
cache-dependency-path: "providers/**/*.sum"
- name: Setup Terraform
uses: pagopa/dx/.github/actions/terraform-setup@main
- name: Install dependencies
run: pnpm install
- name: Cache Nx
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: .nx
key: ${{ runner.os }}-nx-cache-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-nx-cache-
- name: Sets the base and head SHAs required for `nx affected` command
uses: nrwl/nx-set-shas@3e9ad7370203c1e93d109be57f3b72eb0eb511b1
- name: Run code quality checks on affected projects
run: pnpm validate