Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Ignore] Dummy PR for nemesis workflow test #669

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 0 additions & 40 deletions .github/workflows/c-bindings.yml

This file was deleted.

43 changes: 0 additions & 43 deletions .github/workflows/golang-bindings.yml

This file was deleted.

53 changes: 34 additions & 19 deletions .github/workflows/nemesis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches: [ "main" ]
pull_request:
pull_request_target:
branches: ["main"]
merge_group:
branches: [ "main" ]

Expand All @@ -15,8 +17,17 @@ env:
# RUSTFLAGS: "-D warnings"

jobs:
test-nemesis:
authorize:
environment: ${{ github.event_name == 'pull_request_target' &&
github.event.pull_request.head.repo.full_name != github.repository &&
'external' || 'internal' }}
runs-on: ubuntu-latest
steps:
- run: true

test-nemesis:
needs: authorize
runs-on: self-hosted
name: Run Nemesis Tests
env:
RUSTFLAGS: -D warnings
Expand All @@ -33,30 +44,15 @@ jobs:

- uses: actions/checkout@v3

- name: Set up cargo cache
uses: actions/cache@v3
continue-on-error: false
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-

- name: Cargo build
- name: Run nemesis tests
run: |
cargo build
mv ./target/debug/sqld /usr/local/bin
sqld --version
echo $PATH

- name: Download MinIO binary
run: |
wget -q https://dl.min.io/server/minio/release/linux-amd64/minio -O minio
chmod +x minio
mv minio /usr/local/bin
mv minio /home/ubuntu/.cargo/bin
minio --version

- name: Nemesis tests checkout
Expand All @@ -75,6 +71,25 @@ jobs:
cd nemesis-tests
go build -o ../tursotests cmd/tursotest/main.go

- name: Set up cargo cache
uses: actions/cache@v3
continue-on-error: false
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-

- name: Cargo build
run: |
cargo build
mv ./target/debug/sqld /home/ubuntu/.cargo/bin
sqld --version

- name: Run nemesis tests
run: |
./tursotests nemesis local
55 changes: 0 additions & 55 deletions .github/workflows/publish-server.yml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/workflows/release-drafter.yml

This file was deleted.

Loading
Loading