Skip to content

ci: remove old test scripts from workflows #14

ci: remove old test scripts from workflows

ci: remove old test scripts from workflows #14

Workflow file for this run

name: Release
on:
push:
branches:
- main
- master
paths-ignore:
- 'README.md'
- 'docs/**'
- '.github/workflows/ci.yml'
workflow_dispatch:
permissions:
contents: write
pull-requests: write
issues: write
repository-projects: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
submodules: recursive
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Cache node-gyp
uses: actions/cache@v4
with:
path: |
~/.cache/node-gyp
~/.node-gyp
build/
key: ${{ runner.os }}-node-gyp-20-${{ hashFiles('binding.gyp', 'deps/**') }}
restore-keys: |
${{ runner.os }}-node-gyp-20-
${{ runner.os }}-node-gyp-
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential cmake
- name: Install dependencies
run: npm ci
- name: Build native module
run: npm run build
- name: Run tests
run: |
npm test
- name: Release
uses: googleapis/release-please-action@v4
id: release