Skip to content

Commit

Permalink
test CI updates
Browse files Browse the repository at this point in the history
  • Loading branch information
neriumrevolta committed Feb 14, 2024
1 parent a8811c6 commit 5e16f77
Showing 1 changed file with 13 additions and 24 deletions.
37 changes: 13 additions & 24 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
on:
push:
branches: [main]
pull_request_review:
types: [submitted]
pull_request:
branches: [main]

name: CI

Expand All @@ -21,30 +21,27 @@ jobs:
check:
name: Check
if: github.event.review.state == 'approved'
strategy:
matrix:
include:
- os: ubuntu-latest
toolchain: stable-x86_64-unknown-linux-gnu
- os: macos-latest
toolchain: stable-x86_64-apple-darwin
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Checkout submodules
run: git submodule update --init --recursive
- uses: actions/setup-go@v4 # we need go to build go-waku
- uses: actions/setup-go@v4
with:
go-version: '1.19'
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
toolchain: stable-x86_64-unknown-linux-gnu
default: true
override: true
- name: List project directory contents after checkout
run: |
ls -la
echo "Contents of .sqlx directory (if present):"
ls -la .sqlx || echo ".sqlx directory not found."
- uses: actions-rs/cargo@v1
continue-on-error: false
with:
Expand All @@ -56,28 +53,20 @@ jobs:
test:
name: Test Suite
if: github.event.review.state == 'approved'
strategy:
matrix:
include:
- os: ubuntu-latest
toolchain: stable-x86_64-unknown-linux-gnu
- os: macos-latest
toolchain: stable-x86_64-apple-darwin
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Checkout submodules
run: git submodule update --init --recursive
- uses: actions/setup-go@v4 # we need go to build go-waku
- uses: actions/setup-go@v4
with:
go-version: '1.19'
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
toolchain: stable-x86_64-unknown-linux-gnu
default: true
override: true
- uses: actions-rs/cargo@v1
Expand Down

0 comments on commit 5e16f77

Please sign in to comment.