refactor: besoin ch and generation ch recup service refactoring #56
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: Build | |
on: | |
push: | |
branches: ['main'] | |
pull_request: | |
branches: ['main'] | |
permissions: | |
contents: write | |
issues: write | |
id-token: write | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-24.04 | |
env: | |
NODE_OPTIONS: '--max-old-space-size=4096' | |
steps: | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Git checkout for source code analysis | |
uses: actions/checkout@v4 | |
- name: Install Dependencies | |
run: npm ci | |
- name: Cache Node.js modules | |
uses: actions/cache@v4 | |
with: | |
path: ~/.npm | |
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }} | |
- name: Generate assets | |
run: npm run assets:sync | |
- name: Run unit tests with coverage | |
run: npm run test:ci | |
continue-on-error: true | |
- name: Run qa | |
run: | | |
npm run qa:lint | |
npm run qa:duplication | |
- name: Release | |
if: github.ref == 'refs/heads/main' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: | | |
cp package.json src/ | |
cp README.md src/ | |
npm run release -- --r git@github.com:Open3CL/engine.git |