Update to actinos/cache@v3 since v2 is EOL (#21) #73
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: | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| node-version: [18] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Set git to use LF | |
| if: ${{ matrix.os == 'windows-latest' }} | |
| run: | | |
| git config --global core.autocrlf false | |
| git config --global core.eol lf | |
| - uses: actions/checkout@v2 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Cache Node Modules | |
| id: cache-node-modules | |
| uses: actions/cache@v3 | |
| with: | |
| path: node_modules | |
| key: ${{ hashFiles('**/package-lock.json') }} | |
| - run: npm ci | |
| - run: npm run build:prod | |
| - run: npm test |