diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index fc4a87e6..b9eb4a47 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -7,7 +7,7 @@ on: branches: [main] jobs: - build-and-test: + unit-test: runs-on: ubuntu-latest steps: @@ -15,6 +15,27 @@ jobs: uses: actions/checkout@v3 - name: Setup Node uses: actions/setup-node@v3 + - uses: actions/cache@v3 + id: npm-cache + with: + path: ~/.npm + key: npm-${{ hashFiles('**/package-lock.json') }} - run: npm ci - run: npm test + + + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Setup Node + uses: actions/setup-node@v3 + - uses: actions/cache@v3 + id: npm-cache + with: + path: ~/.npm + key: npm-${{ hashFiles('**/package-lock.json') }} + - run: npm ci - run : npm run build \ No newline at end of file