Merge pull request #3353 from gdg-x/dependabot/npm_and_yarn/multi-708… #3732
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: Main | |
| on: push | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| name: ${{ matrix.script-name }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| script-name: [lint, test, build] | |
| steps: | |
| - name: Checkout the repo | |
| uses: actions/checkout@v5 | |
| - name: Cache node modules | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.npm | |
| key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-node- | |
| - name: Setup node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Create temp serviceAccount.json | |
| run: echo "{}" > serviceAccount.json | |
| - name: Running ${{ matrix.script-name }} | |
| run: npm run ${{ matrix.script-name }} |