feat: [IDS-5149] Node18 upgrade #9
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
# Javascript Node CircleCI 2.0 configuration file | |
name: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build_and_test: | |
runs-on: ubuntu-latest | |
env: | |
CC_TEST_REPORTER_ID: 707f5959816d898ffc7176d49d2cd4f6b200c697460965a77d7af28ffdcf5cb6 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Cache npm dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: npm-dependencies-${{ hashFiles('package-lock.json') }} | |
restore-keys: | | |
npm-dependencies- | |
# - name: Install FOSSA | |
# run: | | |
# curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh | bash | |
- name: Install dependencies | |
run: npm install | |
# - name: FOSSA Init | |
# run: fossa init | |
# - name: FOSSA Analyze | |
# run: fossa analyze | |
# - name: FOSSA Test | |
# run: fossa test | |
# code climate requires before-build and after-build to be executed around test | |
- name: Run Tests | |
run: | | |
#./cc-test-reporter before-build | |
npm run test | |
#./cc-test-reporter after-build --exit-code $? | |
- name: Build and Package | |
run: | | |
npm run build | |
npm run package | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: package | |
path: ./dist/package.zip |