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
|
|
|
|
2020-12-20 06:01:10 +09:00
|
|
|
steps:
|
2021-07-31 20:29:31 +09:00
|
|
|
- name: Checkout repository
|
2022-03-11 22:35:06 +09:00
|
|
|
uses: actions/checkout@v3
|
2021-07-31 20:29:31 +09:00
|
|
|
|
2021-12-11 23:47:38 +09:00
|
|
|
- name: Use Node.js 16 LTS
|
2022-04-02 22:55:47 +09:00
|
|
|
uses: actions/setup-node@v3
|
2020-12-20 06:01:10 +09:00
|
|
|
with:
|
2021-12-11 23:47:38 +09:00
|
|
|
node-version: '16'
|
2021-07-31 20:29:31 +09:00
|
|
|
|
|
|
|
- name: Install Gulp
|
|
|
|
run: npm install -g gulp-cli
|
|
|
|
|
|
|
|
- name: Install other dependencies
|
2022-06-09 21:46:47 +09:00
|
|
|
run: npm install -f
|
2021-07-31 20:29:31 +09:00
|
|
|
|
|
|
|
- name: Run tests
|
2021-08-27 23:07:07 +09:00
|
|
|
run: gulp ci-test
|