Merge pull request #39 from authts/dependabot/npm_and_yarn/ejs-3.1.10 #4
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
name: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: npm | |
env: | |
CI: true | |
- name: Cache incremental builds | |
uses: actions/cache@v3 | |
with: | |
path: | | |
.eslintcache | |
**/node_modules/.cache | |
key: build-${{ github.head_ref }}-${{ github.sha }} | |
restore-keys: | | |
build-${{ github.head_ref }}- | |
build-refs/heads/main- | |
# project | |
- run: npm install | |
- run: npm run build |