Skip to content

Package update

Package update #5

Workflow file for this run

name: Test against PR
on:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2.1.4
with:
node-version: 20
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Setup yarn cache
uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Add node-gyp
run: yarn global add node-gyp
- name: Install modules
run: yarn --prefer-offline --frozen-lockfile
- name: Run tests
run: yarn test
build-container:
runs-on: ubuntu-latest
needs: test
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Build Docker image
uses: docker/build-push-action@v5.1.0
with:
context: .
push: false