Skip to content

Commit

Permalink
chore: Add private tests which require auth to merge queue (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryantbiggs authored Aug 23, 2024
1 parent 08693eb commit 893af8c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 26 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci-private.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Continuous integration - private registry

on:
pull_request:
merge_group:

jobs:
test-net-private:
name: Test Suite (network-enabled tests)
runs-on: ubuntu-latest
environment: main
strategy:
matrix:
rust:
- stable
- nightly
- "1.70.0" # MSRV
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install toolchain
uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ matrix.rust }}

# - name: Run cargo test (test-net-private)
# run: cargo test --features test-net,test-net-private
# env:
# DOCKER_REGISTRY_QUAY_USER: ${{ secrets.DOCKER_REGISTRY_QUAY_USER }}
# DOCKER_REGISTRY_QUAY_PASSWD: ${{ secrets.DOCKER_REGISTRY_QUAY_PASSWD }}
27 changes: 1 addition & 26 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Continuous integration

on:
pull_request:
merge_group:

jobs:
check:
Expand Down Expand Up @@ -56,32 +57,6 @@ jobs:
- name: Run tests
run: cargo test

test-net-private:
name: Test Suite (network-enabled tests)
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
- nightly
- "1.70.0" # MSRV
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install toolchain
uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ matrix.rust }}

# - name: Run cargo test (test-net-private)
# run: cargo test --features test-net,test-net-private
# env:
# DOCKER_REGISTRY_QUAY_USER: ${{ secrets.DOCKER_REGISTRY_QUAY_USER }}
# DOCKER_REGISTRY_QUAY_PASSWD: ${{ secrets.DOCKER_REGISTRY_QUAY_PASSWD }}

lints:
name: Lints
runs-on: ubuntu-latest
Expand Down

0 comments on commit 893af8c

Please sign in to comment.