diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2670403..0a91a08 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,13 +4,15 @@ on: branches: - main pull_request: +permissions: + contents: read jobs: full: name: Node.js Latest Full runs-on: ubuntu-latest steps: - name: Checkout the repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install pnpm uses: pnpm/action-setup@v2 with: @@ -18,24 +20,22 @@ jobs: - name: Install Node.js uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 20 cache: pnpm - name: Install dependencies run: pnpm install --frozen-lockfile --ignore-scripts - name: Run tests run: pnpm test - env: - FORCE_COLOR: 2 short: runs-on: ubuntu-latest strategy: matrix: node-version: - - 16 + - 18 name: Node.js ${{ matrix.node-version }} Quick steps: - name: Checkout the repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install pnpm uses: pnpm/action-setup@v2 with: @@ -49,5 +49,3 @@ jobs: run: pnpm install --frozen-lockfile --ignore-scripts - name: Run unit tests run: pnpm unit - env: - FORCE_COLOR: 2