2020-12-20 06:01:10 +09:00
|
|
|
name: CI
|
|
|
|
on: [push, pull_request]
|
2022-06-09 10:08:19 +09:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2020-12-20 06:01:10 +09:00
|
|
|
jobs:
|
2021-07-31 20:29:31 +09:00
|
|
|
test:
|
|
|
|
name: Test
|
2020-12-20 06:01:10 +09:00
|
|
|
runs-on: ubuntu-latest
|
2021-07-31 20:29:31 +09:00
|
|
|
|
2023-10-29 19:58:54 +09:00
|
|
|
strategy:
|
2023-10-29 22:21:13 +09:00
|
|
|
fail-fast: false
|
2023-10-29 19:58:54 +09:00
|
|
|
matrix:
|
2023-10-29 22:21:13 +09:00
|
|
|
node-version: [18, lts/*, latest]
|
2023-10-29 19:58:54 +09:00
|
|
|
|
2020-12-20 06:01:10 +09:00
|
|
|
steps:
|
2021-07-31 20:29:31 +09:00
|
|
|
- name: Checkout repository
|
2023-09-04 21:51:59 +09:00
|
|
|
uses: actions/checkout@v4
|
2023-04-28 18:42:19 +09:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2021-07-31 20:29:31 +09:00
|
|
|
|
2023-10-29 19:58:54 +09:00
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
2023-10-29 04:02:51 +09:00
|
|
|
uses: actions/setup-node@v4
|
2020-12-20 06:01:10 +09:00
|
|
|
with:
|
2023-10-29 19:58:54 +09:00
|
|
|
node-version: ${{ matrix.node-version }}
|
2021-07-31 20:29:31 +09:00
|
|
|
|
|
|
|
- name: Install Gulp
|
|
|
|
run: npm install -g gulp-cli
|
|
|
|
|
|
|
|
- name: Install other dependencies
|
2023-04-23 19:40:28 +09:00
|
|
|
run: npm install
|
2021-07-31 20:29:31 +09:00
|
|
|
|
2023-11-12 21:41:10 +09:00
|
|
|
- name: Run external tests
|
|
|
|
run: gulp externaltest
|
|
|
|
|
|
|
|
- name: Run CLI unit tests
|
|
|
|
run: gulp unittestcli
|