mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 15:24:46 -05:00
ci: skip running tests and benchmarks on tags (#12443)
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
This commit is contained in:
parent
c343dec3d5
commit
9bece95f28
1 changed files with 18 additions and 9 deletions
27
.github/workflows/ci.yml
vendored
27
.github/workflows/ci.yml
vendored
|
@ -417,7 +417,7 @@ jobs:
|
||||||
- name: Test debug
|
- name: Test debug
|
||||||
if: |
|
if: |
|
||||||
matrix.job == 'test' && matrix.profile == 'debug' &&
|
matrix.job == 'test' && matrix.profile == 'debug' &&
|
||||||
!matrix.use_sysroot
|
!matrix.use_sysroot && !startsWith(github.ref, 'refs/tags/')
|
||||||
run: |
|
run: |
|
||||||
cargo test --locked --doc
|
cargo test --locked --doc
|
||||||
cargo test --locked
|
cargo test --locked
|
||||||
|
@ -433,18 +433,27 @@ jobs:
|
||||||
matrix.job == 'test' && matrix.profile == 'release' &&
|
matrix.job == 'test' && matrix.profile == 'release' &&
|
||||||
!matrix.use_sysroot &&
|
!matrix.use_sysroot &&
|
||||||
github.repository == 'denoland/deno' &&
|
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
|
run: cargo test --release --locked
|
||||||
|
|
||||||
- name: Test release (in sysroot)
|
- name: Test release (in sysroot)
|
||||||
if: |
|
if: |
|
||||||
matrix.job == 'test' && matrix.profile == 'release' &&
|
matrix.job == 'test' && matrix.profile == 'release' &&
|
||||||
matrix.use_sysroot
|
matrix.use_sysroot && !startsWith(github.ref, 'refs/tags/')
|
||||||
run: |
|
run: |
|
||||||
sudo chroot /sysroot \
|
sudo chroot /sysroot \
|
||||||
su -l "$(whoami)" \
|
su -l "$(whoami)" \
|
||||||
-c "cargo test --release --locked"
|
-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
|
# TODO(ry): Because CI is so slow on for OSX and Windows, we currently
|
||||||
# run the Web Platform tests only on Linux.
|
# run the Web Platform tests only on Linux.
|
||||||
- name: Configure hosts file for WPT
|
- name: Configure hosts file for WPT
|
||||||
|
@ -455,7 +464,7 @@ jobs:
|
||||||
- name: Run web platform tests (debug)
|
- name: Run web platform tests (debug)
|
||||||
if: |
|
if: |
|
||||||
startsWith(matrix.os, 'ubuntu') && matrix.job == 'test' &&
|
startsWith(matrix.os, 'ubuntu') && matrix.job == 'test' &&
|
||||||
matrix.profile == 'debug' &&
|
matrix.profile == 'debug' &&
|
||||||
github.ref == 'refs/heads/main'
|
github.ref == 'refs/heads/main'
|
||||||
env:
|
env:
|
||||||
DENO_BIN: ./target/debug/deno
|
DENO_BIN: ./target/debug/deno
|
||||||
|
@ -470,7 +479,7 @@ jobs:
|
||||||
- name: Run web platform tests (release)
|
- name: Run web platform tests (release)
|
||||||
if: |
|
if: |
|
||||||
startsWith(matrix.os, 'ubuntu') && matrix.job == 'test' &&
|
startsWith(matrix.os, 'ubuntu') && matrix.job == 'test' &&
|
||||||
matrix.profile == 'release'
|
matrix.profile == 'release' && !startsWith(github.ref, 'refs/tags/')
|
||||||
env:
|
env:
|
||||||
DENO_BIN: ./target/release/deno
|
DENO_BIN: ./target/release/deno
|
||||||
run: |
|
run: |
|
||||||
|
@ -490,7 +499,7 @@ jobs:
|
||||||
matrix.job == 'test' &&
|
matrix.job == 'test' &&
|
||||||
matrix.profile == 'release' &&
|
matrix.profile == 'release' &&
|
||||||
github.repository == 'denoland/deno' &&
|
github.repository == 'denoland/deno' &&
|
||||||
github.ref == 'refs/heads/main'
|
github.ref == 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/')
|
||||||
run: |
|
run: |
|
||||||
gzip ./wptreport.json
|
gzip ./wptreport.json
|
||||||
gsutil cp ./wpt.json gs://dl.deno.land/wpt/$(git rev-parse HEAD).json
|
gsutil cp ./wpt.json gs://dl.deno.land/wpt/$(git rev-parse HEAD).json
|
||||||
|
@ -504,7 +513,7 @@ jobs:
|
||||||
matrix.job == 'test' &&
|
matrix.job == 'test' &&
|
||||||
matrix.profile == 'release' &&
|
matrix.profile == 'release' &&
|
||||||
github.repository == 'denoland/deno' &&
|
github.repository == 'denoland/deno' &&
|
||||||
github.ref == 'refs/heads/main'
|
github.ref == 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/')
|
||||||
env:
|
env:
|
||||||
WPT_FYI_USER: ${{ secrets.WPT_FYI_USER }}
|
WPT_FYI_USER: ${{ secrets.WPT_FYI_USER }}
|
||||||
WPT_FYI_PW: ${{ secrets.WPT_FYI_PW }}
|
WPT_FYI_PW: ${{ secrets.WPT_FYI_PW }}
|
||||||
|
@ -514,7 +523,7 @@ jobs:
|
||||||
./tools/upload_wptfyi.js $(git rev-parse HEAD) --ghstatus
|
./tools/upload_wptfyi.js $(git rev-parse HEAD) --ghstatus
|
||||||
|
|
||||||
- name: Run benchmarks
|
- 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
|
run: cargo bench --locked
|
||||||
|
|
||||||
- name: Run benchmarks (in sysroot)
|
- name: Run benchmarks (in sysroot)
|
||||||
|
@ -528,7 +537,7 @@ jobs:
|
||||||
if: |
|
if: |
|
||||||
matrix.job == 'bench' &&
|
matrix.job == 'bench' &&
|
||||||
github.repository == 'denoland/deno' &&
|
github.repository == 'denoland/deno' &&
|
||||||
github.ref == 'refs/heads/main'
|
github.ref == 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/')
|
||||||
env:
|
env:
|
||||||
DENOBOT_PAT: ${{ secrets.DENOBOT_PAT }}
|
DENOBOT_PAT: ${{ secrets.DENOBOT_PAT }}
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in a new issue