From 946eb66ebed0d2f6e3f1982abb38f8a260befc4a Mon Sep 17 00:00:00 2001 From: minseokkang Date: Fri, 4 Nov 2022 15:27:59 +0900 Subject: [PATCH] feat : api test ADD GitAction feat : api test ADD GitAction feat : api test ADD GitAction feat : api test ADD GitAction feat : cache test --- .github/workflows/apiTest.yml | 31 +++++++++++++++++++------------ .github/workflows/autoTest.yml | 1 - 2 files changed, 19 insertions(+), 13 deletions(-) diff --git a/.github/workflows/apiTest.yml b/.github/workflows/apiTest.yml index 6712ee8..d9cc9ad 100644 --- a/.github/workflows/apiTest.yml +++ b/.github/workflows/apiTest.yml @@ -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 \ No newline at end of file + - 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 \ No newline at end of file diff --git a/.github/workflows/autoTest.yml b/.github/workflows/autoTest.yml index fa0792f..284811d 100644 --- a/.github/workflows/autoTest.yml +++ b/.github/workflows/autoTest.yml @@ -17,7 +17,6 @@ jobs: java-version: '18' cache: gradle - - name: Grant execute permission gradlew run: chmod +x gradlew