feat : api test ADD GitAction
feat : api test ADD GitAction feat : api test ADD GitAction feat : api test ADD GitAction feat : cache test
This commit is contained in:
31
.github/workflows/apiTest.yml
vendored
31
.github/workflows/apiTest.yml
vendored
@@ -7,18 +7,25 @@ on:
|
||||
jobs:
|
||||
real-world-api-test:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [18.x]
|
||||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: 'npm'
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: npx install
|
||||
run: npm install -g npx
|
||||
- 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
|
||||
1
.github/workflows/autoTest.yml
vendored
1
.github/workflows/autoTest.yml
vendored
@@ -17,7 +17,6 @@ jobs:
|
||||
java-version: '18'
|
||||
cache: gradle
|
||||
|
||||
|
||||
- name: Grant execute permission gradlew
|
||||
run: chmod +x gradlew
|
||||
|
||||
|
||||
Reference in New Issue
Block a user