This repository has been archived by the owner on Dec 26, 2023. It is now read-only.
Merge pull request #14 from sanwebinfo/renovate/actions-checkout-4.x #56
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: server-test | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v4.1.1 | |
- name: Cache node modules | |
uses: actions/cache@v3.3.2 | |
with: | |
path: node_modules | |
key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.OS }}-build-${{ env.cache-name }}- | |
${{ runner.OS }}-build- | |
${{ runner.OS }}- | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3.8.1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: yarn | |
- run: yarn test |