2020-10-14 17:15:20 +09:00
|
|
|
name: Linux musl
|
2020-06-10 19:55:40 +09:00
|
|
|
|
2020-10-15 17:14:11 +09:00
|
|
|
env:
|
|
|
|
DEBUG: 'napi:*'
|
|
|
|
|
2020-08-17 23:36:09 +09:00
|
|
|
on:
|
|
|
|
push:
|
2020-12-03 17:30:14 +09:00
|
|
|
branches:
|
|
|
|
- main
|
2020-08-17 23:36:09 +09:00
|
|
|
pull_request:
|
2020-06-10 19:55:40 +09:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2021-03-19 12:53:48 +09:00
|
|
|
name: stable - x86_64-unknown-linux-musl - node@lts
|
2020-06-10 19:55:40 +09:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
2021-11-19 15:58:21 +09:00
|
|
|
- name: Setup node
|
2022-03-05 15:14:32 +09:00
|
|
|
uses: actions/setup-node@v3
|
2020-11-26 15:30:19 +09:00
|
|
|
with:
|
2021-11-19 15:58:21 +09:00
|
|
|
node-version: 16
|
|
|
|
check-latest: true
|
|
|
|
cache: 'yarn'
|
2020-11-26 15:30:19 +09:00
|
|
|
|
2021-11-19 15:58:21 +09:00
|
|
|
- name: 'Install dependencies'
|
2022-01-24 12:33:51 +09:00
|
|
|
run: yarn install --immutable --network-timeout 300000
|
2020-07-29 23:04:47 +09:00
|
|
|
|
|
|
|
- name: 'Build TypeScript'
|
2021-11-19 15:58:21 +09:00
|
|
|
run: yarn build
|
2020-06-10 19:55:40 +09:00
|
|
|
|
2021-11-19 15:58:21 +09:00
|
|
|
- name: Setup and run tests
|
|
|
|
uses: addnab/docker-run-action@v3
|
|
|
|
with:
|
|
|
|
image: ghcr.io/${{ github.repository }}/nodejs-rust:lts-alpine
|
|
|
|
options: -v ${{ github.workspace }}:/napi-rs -w /napi-rs
|
|
|
|
run: |
|
|
|
|
cargo check -vvv
|
|
|
|
yarn build:test
|
|
|
|
yarn test
|