Skip to content

fix: bump GCS dependency to support Node 20 (#145) #75

fix: bump GCS dependency to support Node 20 (#145)

fix: bump GCS dependency to support Node 20 (#145) #75

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Build and test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20]
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build and test
run: npm run build --if-present
env:
CDN_UPLOADER_CREDENTIALS: ${{ secrets.CDN_UPLOADER_CREDENTIALS }}
CDN_UPLOADER_PROJECT: ${{ secrets.CDN_UPLOADER_PROJECT }}