Skip to content

chore: Adjusting CI #666

chore: Adjusting CI

chore: Adjusting CI #666

Workflow file for this run

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