From 9a2d01b91829f460738e72df9e9a5f49ea15b7f0 Mon Sep 17 00:00:00 2001 From: Manuel Trezza <5673677+mtrezza@users.noreply.github.com> Date: Wed, 20 Nov 2024 21:00:00 +0100 Subject: [PATCH 1/3] remove old node versions --- .github/workflows/ci.yml | 25 +++++++++---------------- README.md | 1 + 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b5f4e67..ba2ab6b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,25 +11,18 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node: [ '12', '14', '15', '16', '17', '18' ] - timeout-minutes: 30 - env: - COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} - COVERAGE_OPTION: ./node_modules/.bin/nyc + node: [ '18', '20', '22' ] + timeout-minutes: 15 steps: - - uses: actions/checkout@v2 - - name: Use Node.js - uses: actions/setup-node@v2 + - name: Checkout repository + uses: actions/checkout@v4 + - name: Setup Node + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} - - name: Cache Node.js modules - uses: actions/cache@v2 - with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- - - run: npm ci + cache: 'npm' + - name: Install dependencies + run: npm ci - run: npm run coverage env: CI: true diff --git a/README.md b/README.md index bee00fc..4afcedb 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ [![Coverage](https://img.shields.io/codecov/c/github/parse-community/parse-server-gcs-adapter/main.svg)](https://codecov.io/github/parse-community/parse-server-gcs-adapter?branch=main) [![auto-release](https://img.shields.io/badge/%F0%9F%9A%80-auto--release-9e34eb.svg)](https://github.com/parse-community/parse-server-gcs-adapter/releases) +[![Node Version](https://img.shields.io/badge/nodejs-18,_20,_22-green.svg?logo=node.js&style=flat)](https://nodejs.org) [![npm latest version](https://img.shields.io/npm/v/@parse/gcs-files-adapter.svg)](https://www.npmjs.com/package/@parse/gcs-files-adapter) --- From 182a9c29eaf2101b4b809869024684fd7712d963 Mon Sep 17 00:00:00 2001 From: Manuel Trezza <5673677+mtrezza@users.noreply.github.com> Date: Wed, 20 Nov 2024 21:03:21 +0100 Subject: [PATCH 2/3] Update ci.yml --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ba2ab6b..a1bf7ca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,3 +31,6 @@ jobs: with: fail_ci_if_error: true token: ${{ secrets.CODECOV_TOKEN }} +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true From 103a2af8662a0489c22c959e0b12ce258e123dc6 Mon Sep 17 00:00:00 2001 From: Manuel Trezza <5673677+mtrezza@users.noreply.github.com> Date: Wed, 20 Nov 2024 21:04:53 +0100 Subject: [PATCH 3/3] Update ci.yml --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a1bf7ca..02b78b5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,6 +13,7 @@ jobs: matrix: node: [ '18', '20', '22' ] timeout-minutes: 15 + name: Node ${{ matrix.node }} steps: - name: Checkout repository uses: actions/checkout@v4