fix: update dependencies and address vulnerabilities in dependencies #43
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: lint_format_test | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| paths-ignore: | |
| - .github/** | |
| - .husky/** | |
| - '**/README.md' | |
| branches: | |
| - master | |
| - beta | |
| jobs: | |
| lint: | |
| name: lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.ACTIONS_PAT }} | |
| - name: Setup node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: lts/* | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Run lint-fix | |
| run: npm run lint-fix | |
| - name: Commit changes | |
| id: commit | |
| uses: EndBug/add-and-commit@v9 | |
| with: | |
| commit: --no-verify | |
| message: 'fix: resolve linter errors' | |
| committer_name: GitHub Actions | |
| outputs: | |
| committed: ${{ steps.commit.outputs.committed }} | |
| format: | |
| needs: lint | |
| if: needs.lint.outputs.committed == 'false' | |
| name: format | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.ACTIONS_PAT }} | |
| - name: Setup node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: lts/* | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Run format | |
| run: npm run format | |
| - name: Commit changes | |
| id: commit | |
| uses: EndBug/add-and-commit@v9 | |
| with: | |
| commit: --no-verify | |
| message: 'fix: resolve formatting errors' | |
| committer_name: GitHub Actions | |
| committer_email: [email protected] | |
| outputs: | |
| committed: ${{ steps.commit.outputs.committed }} | |
| test: | |
| needs: format | |
| if: needs.format.outputs.committed == 'false' | |
| name: test | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [14.x, 16.x, 18.x, 20.x] | |
| fail-fast: false | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Setup node ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Run test coverage and tests | |
| run: npm run test-coverage:ci | |
| env: | |
| API_BASE_URL: ${{ vars.API_BASE_URL }} | |
| SANDBOX_API_KEY: ${{ secrets.SANDBOX_API_KEY }} | |
| TEST_APP_ID: ${{ vars.TEST_APP_ID }} | |
| TEST_APP_IDS: ${{ vars.TEST_APP_IDS }} | |
| TEST_APP_IDS_NO_ACCESS: ${{ vars.TEST_APP_IDS_NO_ACCESS }} | |
| TEST_APP_ID_NO_ACCESS: ${{ vars.TEST_APP_ID_NO_ACCESS }} | |
| TEST_ATTACHMENT: ${{ vars.TEST_ATTACHMENT }} | |
| TEST_ATTACHMENT_FIELD: ${{ vars.TEST_ATTACHMENT_FIELD }} | |
| TEST_ATTACHMENT_FIELD_NO_ACCESS_APP: ${{ vars.TEST_ATTACHMENT_FIELD_NO_ACCESS_APP }} | |
| TEST_ATTACHMENT_FIELD_NO_ACCESS_FIELD: ${{ vars.TEST_ATTACHMENT_FIELD_NO_ACCESS_FIELD }} | |
| TEST_FIELD_ID: ${{ vars.TEST_FIELD_ID }} | |
| TEST_FIELD_IDS: ${{ vars.TEST_FIELD_IDS }} | |
| TEST_FIELD_IDS_NO_ACCESS: ${{ vars.TEST_FIELD_IDS_NO_ACCESS }} | |
| TEST_FIELD_ID_NO_ACCESS: ${{ vars.TEST_FIELD_ID_NO_ACCESS }} | |
| TEST_IMAGE: ${{ vars.TEST_IMAGE }} | |
| TEST_IMAGE_FIELD: ${{ vars.TEST_IMAGE_FIELD }} | |
| TEST_LIST_FIELD: ${{ vars.TEST_LIST_FIELD }} | |
| TEST_LIST_FIELD_NO_ACCESS: ${{ vars.TEST_LIST_FIELD_NO_ACCESS }} | |
| TEST_LIST_ID: ${{ vars.TEST_LIST_ID }} | |
| TEST_LIST_ID_NO_ACCESS: ${{ vars.TEST_LIST_ID_NO_ACCESS }} | |
| TEST_LIST_ITEM_ID_NO_ACCESS: ${{ vars.TEST_LIST_ITEM_ID_NO_ACCESS }} | |
| TEST_RECORD: ${{ vars.TEST_RECORD }} | |
| TEST_REPORT: ${{ vars.TEST_REPORT }} | |
| TEST_REPORT_NO_ACCESS: ${{ vars.TEST_REPORT_NO_ACCESS }} | |
| TEST_REPORT_WITH_CHART_DATA: ${{ vars.TEST_REPORT_WITH_CHART_DATA }} | |
| TEST_SURVEY_AUTO_NUMBER_FIELD: ${{ vars.TEST_SURVEY_AUTO_NUMBER_FIELD }} | |
| TEST_SURVEY_ID: ${{ vars.TEST_SURVEY_ID }} | |
| TEST_SURVEY_RECORD_ID: ${{ vars.TEST_SURVEY_RECORD_ID }} | |
| TEST_TEXT_FIELD: ${{ vars.TEST_TEXT_FIELD }} | |
| - name: Upload test coverage artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage-${{ matrix.node-version }} | |
| path: ./coverage | |
| publish_test_coverage: | |
| needs: test | |
| name: publish_test_coverage | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Download test coverage artifact | |
| uses: actions/[email protected] | |
| with: | |
| name: coverage-20.x | |
| path: ./coverage | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} |