diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 364232b..5c4f821 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,33 +6,43 @@ on: jobs: test: name: Test code - runs-on: ubuntu-18.04 + runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v4 + - name: Setup Node.js - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: - node-version: 12 + node-version: 18.16.0 + cache: 'npm' + - name: Install dependencies run: npm install + - name: Test code run: npm run test + release: name: Semantic Release - runs-on: ubuntu-18.04 + runs-on: ubuntu-latest needs: test steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v4 + - name: Setup Node.js - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: - node-version: 12 + node-version: 18.16.0 + cache: 'npm' + - name: Install dependencies run: npm install + - name: Build run: npm run build + - name: Release env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8c6081f..8b9a184 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,20 +6,25 @@ on: jobs: test: name: Test code - runs-on: ubuntu-18.04 + runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v4 + - name: Setup Node.js - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: - node-version: 12 + node-version: 18.16.0 + cache: 'npm' + - name: Install dependencies run: npm install + - name: Test code run: npm run test + - name: Codecov - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} flags: unittests