From bcce1e1f09a301b3d02a716ba5cd498c2de0d7fb Mon Sep 17 00:00:00 2001 From: vidyasagarnimmagaddi <160703874+vidyasagarnimmagaddi@users.noreply.github.com> Date: Mon, 7 Oct 2024 18:05:43 +0530 Subject: [PATCH] Create new_ci.yml --- .github/workflows/new_ci.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/new_ci.yml diff --git a/.github/workflows/new_ci.yml b/.github/workflows/new_ci.yml new file mode 100644 index 0000000000..1b470f981c --- /dev/null +++ b/.github/workflows/new_ci.yml @@ -0,0 +1,35 @@ +name: CI +on: + push + +jobs: + test: + strategy: + matrix: + node: [ '0.10', '0.12', '4', '6', '8', '10', '12', '14', '16', '18', '20' ] + os: [ ubuntu-latest, windows-latest ] + script: [ compress, mocha, release/benchmark, release/jetstream ] + name: ${{ matrix.node }} ${{ matrix.os }} ${{ matrix.script }} + runs-on: ${{ matrix.os }} + env: + NODE: ${{ matrix.node }} + TYPE: ${{ matrix.script }} + UGLIFY_GITHUB_LAG: 10000 + steps: + - uses: actions/checkout@v4 + - uses: actions/cache@v4 + with: + path: tmp + key: tmp ${{ matrix.script }} + - name: Patch OpenSSL on Ubuntu + if: runner.os == 'Linux' + shell: bash + run: | + if ! grep -q '^# providers = provider_sect' /etc/ssl/openssl.cnf; then + echo '# providers = provider_sect' | sudo tee -a /etc/ssl/openssl.cnf + fi + - name: Perform tests + shell: bash + run: | + . ./test/release/install.sh + node test/$TYPE