feat : api test ADD GitAction feat : api test ADD GitAction feat : api test ADD GitAction feat : cache test
31 lines
775 B
YAML
31 lines
775 B
YAML
name: auto API test
|
|
|
|
on:
|
|
push:
|
|
branches: [ "master" ]
|
|
|
|
jobs:
|
|
real-world-api-test:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Cache node modules
|
|
uses: actions/cache@v2
|
|
env:
|
|
cache-name: cache-node-modules
|
|
with:
|
|
# npm cache files are stored in `~/.npm` on Linux/macOS
|
|
path: ~/.npm
|
|
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-build-${{ env.cache-name }}-
|
|
${{ runner.os }}-build-
|
|
${{ runner.os }}-
|
|
|
|
- name: chmod test file
|
|
run: chmod +x ./doc/run-api-tests.sh
|
|
|
|
- name: run api test
|
|
run: ./doc/run-api-tests.sh |