From 85476b25f906b0207b15b07aefd09ebb8367c77c Mon Sep 17 00:00:00 2001 From: Dmitri Smirnov Date: Tue, 23 Apr 2024 11:51:56 -0400 Subject: [PATCH] fix: bump node.js version 16->21 (#30) --- .github/workflows/build-pull-request.yml | 54 ------------------------ .github/workflows/release.yml | 2 +- 2 files changed, 1 insertion(+), 55 deletions(-) delete mode 100644 .github/workflows/build-pull-request.yml diff --git a/.github/workflows/build-pull-request.yml b/.github/workflows/build-pull-request.yml deleted file mode 100644 index fe6cc38..0000000 --- a/.github/workflows/build-pull-request.yml +++ /dev/null @@ -1,54 +0,0 @@ -name: Build Pull Request - -on: - pull_request: - branches: - - '*' - -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number }} - cancel-in-progress: true - -jobs: - build-container: - runs-on: ubuntu-latest - steps: - - name: Define environment variables - run: | - echo REPOSITORY=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV - echo TAG=$(echo "PR-${{ github.event.pull_request.number }}") >> $GITHUB_ENV - - - name: Set up docker - uses: docker/setup-buildx-action@v3 - - - name: Build container - uses: docker/build-push-action@v5 - with: - tags: ghcr.io/${{ env.REPOSITORY }}:${{ env.TAG }} - outputs: type=docker,dest=/tmp/esi-opticks-${{ env.TAG }}.tar - - - name: Save built image for test jobs - uses: actions/upload-artifact@v4 - with: - name: esi-opticks-${{ env.TAG }} - path: /tmp/esi-opticks-${{ env.TAG }}.tar - - test-container: - runs-on: ubuntu-latest - needs: build-container - steps: - - name: Define environment variables - run: | - echo REPOSITORY=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV - echo TAG=$(echo "PR-${{ github.event.pull_request.number }}") >> $GITHUB_ENV - - - name: Download artifact - uses: actions/download-artifact@v4 - with: - name: esi-opticks-${{ env.TAG }} - path: /tmp - - - name: Run tests - run: | - docker load --input /tmp/esi-opticks-${{ env.TAG }}.tar - docker run ghcr.io/${{ env.REPOSITORY }}:${{ env.TAG }} bash -l -c opticks-info diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9012baf..4b41465 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version: '16' + node-version: '21' - name: Run Semantic Release run: |