Skip to content

Commit

Permalink
Merge pull request #3 from neonlabsorg/feat/ci-cd-new-runner
Browse files Browse the repository at this point in the history
Updated run-on to k8s runner
  • Loading branch information
sferatime authored Nov 7, 2024
2 parents 78600e5 + e1c4c9f commit bc9cacb
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,21 @@ on:
jobs:
run-linters:
name: Forge Linting
runs-on: ubuntu-latest
runs-on: ["self-hosted", "k8s-prod"]

steps:
- uses: actions/checkout@v3
- name: Install Git
run: sudo apt update && sudo apt install git -y

- uses: actions/checkout@v4
with:
submodules: recursive

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
cache: false

- name: Check format
run: forge fmt --check
2 changes: 1 addition & 1 deletion .github/workflows/semgrep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ on:
- cron: '35 11 * * *'
jobs:
semgrep:
runs-on: ["self-hosted", "k8s-prod"]
name: semgrep/ci
runs-on: ubuntu-20.04
env:
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
container:
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,25 @@ on:
jobs:
run-tests:
name: Forge Tests
runs-on: ubuntu-latest
runs-on: ["self-hosted", "k8s-prod"]
container:
image: summerwind/actions-runner:latest
options:
"--memory-reservation=12G"

steps:
- uses: actions/checkout@v3
- name: Install Git
run: sudo apt update && sudo apt install git build-essential libssl-dev pkg-config -y

- uses: actions/checkout@v4
with:
submodules: recursive

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
cache: false

- name: Run tests
run: forge test --isolate -vvv
Expand Down

0 comments on commit bc9cacb

Please sign in to comment.