1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00

ci: skip running tests and benchmarks on tags (#12443)

Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
This commit is contained in:
Bartek Iwańczuk 2021-10-20 22:32:31 +02:00 committed by GitHub
parent c343dec3d5
commit 9bece95f28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -417,7 +417,7 @@ jobs:
- name: Test debug
if: |
matrix.job == 'test' && matrix.profile == 'debug' &&
!matrix.use_sysroot
!matrix.use_sysroot && !startsWith(github.ref, 'refs/tags/')
run: |
cargo test --locked --doc
cargo test --locked
@ -433,18 +433,27 @@ jobs:
matrix.job == 'test' && matrix.profile == 'release' &&
!matrix.use_sysroot &&
github.repository == 'denoland/deno' &&
(github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))
github.ref == 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/')
run: cargo test --release --locked
- name: Test release (in sysroot)
if: |
matrix.job == 'test' && matrix.profile == 'release' &&
matrix.use_sysroot
matrix.use_sysroot && !startsWith(github.ref, 'refs/tags/')
run: |
sudo chroot /sysroot \
su -l "$(whoami)" \
-c "cargo test --release --locked"
# Since all tests are skipped when we're building a tagged commit
# this is a minimal check to ensure that binary is not corrupted
- name: Check Deno Binary
if: matrix.profile == 'release'
shell: bash
run: target/release/deno eval "console.log(1+2)" | grep 3
env:
NO_COLOR: 1
# TODO(ry): Because CI is so slow on for OSX and Windows, we currently
# run the Web Platform tests only on Linux.
- name: Configure hosts file for WPT
@ -470,7 +479,7 @@ jobs:
- name: Run web platform tests (release)
if: |
startsWith(matrix.os, 'ubuntu') && matrix.job == 'test' &&
matrix.profile == 'release'
matrix.profile == 'release' && !startsWith(github.ref, 'refs/tags/')
env:
DENO_BIN: ./target/release/deno
run: |
@ -490,7 +499,7 @@ jobs:
matrix.job == 'test' &&
matrix.profile == 'release' &&
github.repository == 'denoland/deno' &&
github.ref == 'refs/heads/main'
github.ref == 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/')
run: |
gzip ./wptreport.json
gsutil cp ./wpt.json gs://dl.deno.land/wpt/$(git rev-parse HEAD).json
@ -504,7 +513,7 @@ jobs:
matrix.job == 'test' &&
matrix.profile == 'release' &&
github.repository == 'denoland/deno' &&
github.ref == 'refs/heads/main'
github.ref == 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/')
env:
WPT_FYI_USER: ${{ secrets.WPT_FYI_USER }}
WPT_FYI_PW: ${{ secrets.WPT_FYI_PW }}
@ -514,7 +523,7 @@ jobs:
./tools/upload_wptfyi.js $(git rev-parse HEAD) --ghstatus
- name: Run benchmarks
if: matrix.job == 'bench' && !matrix.use_sysroot
if: matrix.job == 'bench' && !matrix.use_sysroot && !startsWith(github.ref, 'refs/tags/')
run: cargo bench --locked
- name: Run benchmarks (in sysroot)
@ -528,7 +537,7 @@ jobs:
if: |
matrix.job == 'bench' &&
github.repository == 'denoland/deno' &&
github.ref == 'refs/heads/main'
github.ref == 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/')
env:
DENOBOT_PAT: ${{ secrets.DENOBOT_PAT }}
run: |