chore: Adjusting CI #669
Workflow file for this run
This file contains hidden or 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: APP CI | |
| on: | |
| pull_request: | |
| paths: | |
| - 'services/**' | |
| - 'package.json' | |
| - 'pnpm-lock.yaml' | |
| - '.github/workflows/**' | |
| permissions: | |
| actions: read | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| DEFAULT_NODE_VERSION: '20.13.0' | |
| HUSKY: '0' | |
| NEXT_TELEMETRY_DISABLED: '1' | |
| NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | |
| jobs: | |
| main: | |
| name: π CI Pipeline | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: π₯ Checkout Repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: π¨ Setup Node.js | |
| uses: actions/setup-node@v3 | |
| timeout-minutes: 1 | |
| with: | |
| node-version: ${{ env.DEFAULT_NODE_VERSION }} | |
| - name: π¦ Install Dependencies | |
| uses: ./.github/actions/pnpm-install | |
| timeout-minutes: 5 | |
| - name: π Set Nx Base/Head | |
| uses: nrwl/nx-set-shas@v4 | |
| - name: π Create Environment File | |
| timeout-minutes: 1 | |
| run: | | |
| echo '${{ secrets.DEV_REACT_APP_CONFIG }}' > config.json | |
| echo '${{ secrets.DEV_ONE_APP_CONFIG }}' | jq -r 'to_entries | .[] | "\(.key)=\(.value)"' > services/one-app/.env | |
| - name: π Run CI Tasks | |
| run: | | |
| pnpm nx affected --parallel=3 -t type-check,build,test,lint |