1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-22 15:06:54 -05:00

Change 'cargo publish' test to only do 'cargo package' (#3750)

It was found the cargo-package-dry-run test would fail when version
numbers are bumped because crates were not actually published. So, for
example, deno_typescript 0.30.2 would not be able to find deno_core
0.30.2 because it had not yet been published (see #3744).
Ref #3712
This commit is contained in:
Ry Dahl 2020-01-22 12:31:54 -05:00 committed by Bartek Iwańczuk
parent 92ceb8e323
commit a8bda560e2

View file

@ -10,7 +10,7 @@ jobs:
strategy: strategy:
matrix: matrix:
os: [macOS-latest, windows-2019, ubuntu-16.04] os: [macOS-latest, windows-2019, ubuntu-16.04]
kind: ['test', 'test_debug', 'bench', 'lint', 'test_publish'] kind: ['test', 'test_debug', 'bench', 'lint', 'package']
exclude: exclude:
- os: windows-2019 - os: windows-2019
kind: 'bench' kind: 'bench'
@ -28,9 +28,9 @@ jobs:
kind: 'test_debug' kind: 'test_debug'
- os: windows-2019 - os: windows-2019
kind: 'test_publish' kind: 'package'
- os: macOS-latest - os: macOS-latest
kind: 'test_publish' kind: 'package'
steps: steps:
- name: Configure git - name: Configure git
run: git config --global core.symlinks true run: git config --global core.symlinks true
@ -132,9 +132,15 @@ jobs:
if: matrix.kind == 'test' || matrix.kind == 'bench' if: matrix.kind == 'test' || matrix.kind == 'bench'
run: cargo build --release --locked --all-targets run: cargo build --release --locked --all-targets
- name: dry-run cargo package - name: test cargo-package
if: matrix.kind == 'test_publish' if: matrix.kind == 'package'
run: ./tools/cargo_publish.py --dry-run run: |
cd core
cargo package
cd ../deno_typescript
cargo package
cd ../cli
cargo package
- name: Test - name: Test
if: matrix.kind == 'test' if: matrix.kind == 'test'