diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index d5c2e2b68..26b813283 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -29,14 +29,14 @@ jobs: name: Build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Build shell: bash env: WHITESOURCE_API_KEY: ${{ secrets.WHITESOURCE_API_KEY }} run: ./ci/build.sh - name: Upload Build Artifact - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v3 with: name: artifacts path: artifacts @@ -51,17 +51,18 @@ jobs: cloud: [ 'AWS', 'AZURE', 'GCP' ] nodeVersion: [ '14.x', '16.x', '18.x', '20.x'] steps: - - uses: actions/checkout@v1 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v3 with: node-version: ${{ matrix.nodeVersion }} - - uses: actions/setup-python@v1 + - uses: actions/setup-python@v4 with: python-version: '3.7' - name: Download Build Artifacts - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v3 with: name: artifacts + path: artifacts - name: Install Homebrew Bash shell: bash run: brew install bash @@ -88,18 +89,19 @@ jobs: cloud: [ 'AWS', 'AZURE', 'GCP' ] nodeVersion: [ '14.x', '16.x', '18.x', '20.x'] steps: - - uses: actions/checkout@v1 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v3 with: node-version: ${{ matrix.nodeVersion }} - - uses: actions/setup-python@v1 + - uses: actions/setup-python@v4 with: python-version: '3.7' architecture: 'x64' - name: Download Build Artifacts - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v3 with: name: artifacts + path: artifacts - name: Tests shell: cmd env: @@ -117,11 +119,12 @@ jobs: image: [ 'nodejs-centos7-node14', 'nodejs-centos7-fips'] cloud: [ 'AWS', 'AZURE', 'GCP' ] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Download Build Artifacts - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v3 with: name: artifacts + path: artifacts - name: Tests shell: bash env: @@ -129,6 +132,7 @@ jobs: CLOUD_PROVIDER: ${{ matrix.cloud }} TARGET_DOCKER_TEST_IMAGE: ${{ matrix.image }} run: ./ci/test.sh + test-ubuntu: needs: build name: Tests on Ubuntu diff --git a/ci/test_mac.sh b/ci/test_mac.sh index 23f281de2..1affe52f8 100755 --- a/ci/test_mac.sh +++ b/ci/test_mac.sh @@ -7,8 +7,10 @@ echo "DOWNLOADED" echo $(ls /Users/runner/work/snowflake-connector-nodejs/snowflake-connector-nodejs/) set -o pipefail THIS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +source $THIS_DIR/_init.sh source $THIS_DIR/scripts/set_git_info.sh + export WORKSPACE=$GITHUB_WORKSPACE export SOURCE_ROOT=$GITHUB_WORKSPACE export SHOULD_GENERATE_COVERAGE_REPORT=1 diff --git a/ci/test_ubuntu.sh b/ci/test_ubuntu.sh index de3c6f9b3..1bc6a65a8 100755 --- a/ci/test_ubuntu.sh +++ b/ci/test_ubuntu.sh @@ -7,6 +7,7 @@ echo "DOWNLOADED" echo $(ls /Users/runner/work/snowflake-connector-nodejs/snowflake-connector-nodejs/) set -o pipefail THIS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +source $THIS_DIR/_init.sh source $THIS_DIR/scripts/set_git_info.sh export WORKSPACE=$GITHUB_WORKSPACE