easingthemes-ssh-deploy/.github/workflows/build.yml

32 lines
625 B
YAML
Raw Normal View History

2021-04-17 06:06:00 +08:00
name: Build
on:
push:
branches: [ '**' ]
pull_request:
branches: [ $default-branch ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node-version: [20.x]
2021-04-17 06:06:00 +08:00
steps:
2021-05-28 04:56:27 +08:00
- name: Checkout
2024-02-16 07:53:05 +08:00
uses: actions/checkout@v4
2021-05-28 04:56:27 +08:00
- name: Setup Node.js ${{ matrix.node-version }}
2024-02-16 07:53:05 +08:00
uses: actions/setup-node@v4
2021-04-17 06:06:00 +08:00
with:
node-version: ${{ matrix.node-version }}
2021-05-28 04:56:27 +08:00
- name: Install dependencies
run: npm ci
- name: Build Library
run: npm run build
- name: Run Tests
run: npm test --if-present