Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
avinassh committed Nov 22, 2023
1 parent d58986f commit 0fda13e
Show file tree
Hide file tree
Showing 10 changed files with 120 additions and 824 deletions.
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

0 comments on commit 0fda13e

Please sign in to comment.