chore(deps): update dependency @types/node to v18.19.51 #1188
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: Tests | |
env: | |
CI: true | |
NODE_VERSION: 16.x | |
on: | |
- push | |
jobs: | |
prepare: | |
runs-on: ubuntu-latest | |
if: "! contains(github.event.head_commit.message, '[ci skip]')" | |
steps: | |
- run: echo "${{ github.event.head_commit.message }}" | |
test: | |
runs-on: ubuntu-latest | |
needs: prepare | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: Set up Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: "${{ env.NODE_VERSION }}" | |
- name: Cache node modules | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-node-modules | |
with: | |
# npm cache files are stored in `~/.npm` on Linux/macOS | |
path: ~/.npm | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }} | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
- name: Install node modules | |
run: npm ci | |
- name: Build emma.css file | |
run: npm run build | |
- name: Run test | |
run: npm t |