Merge pull request #71 from CumulusDS/dependabot/github_actions/githu… #302
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: test | |
on: [push, pull_request] | |
jobs: | |
unit: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
node: [16] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Node ${{ matrix.node }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Get yarn cache | |
id: yarn-cache | |
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | |
- uses: actions/cache@v3 | |
with: | |
path: ${{ steps.yarn-cache.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Install NPM Packages | |
run: yarn install | |
- name: Check licenses | |
run: yarn build:license-checker | |
- name: Test | |
run: yarn test | |
- name: Build | |
run: yarn build | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: upload-artifacts | |
path: var | |
if: always() |