Skip to content
Open
Show file tree
Hide file tree
Changes from 5 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
55 changes: 50 additions & 5 deletions .github/workflows/run_integration_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
pull_request:

jobs:
run-integration-test:
setup:
runs-on: ubuntu-latest
steps:
- name: Check out gnoswap repo
Expand All @@ -24,18 +24,63 @@ jobs:
with:
go-version: "1.24"

- name: Build gno
run: |
cd gno
make build.gno

- name: Upload gno artifacts
uses: actions/upload-artifact@v4
with:
name: gno-integration-build
path: |
gno/
retention-days: 1

run-integration-test:
needs: setup
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: "base"
categories: "base"
- name: "upgradable"
categories: "upgradable"
- name: "gov-launchpad"
categories: "gov,launchpad"
- name: "others"
categories: "router,pool,position,staker,root"
steps:
- name: Check out gnoswap repo
uses: actions/checkout@v4

- name: Download gno artifacts
uses: actions/download-artifact@v4
with:
name: gno-integration-build
path: ./gno

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.24"
cache: true
cache-dependency-path: gno/go.sum

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"

- name: Install gno
- name: Install gno from artifacts
run: |
cd gno
make install.gno
go install ./gnovm/cmd/gno

- name: Run setup.py
run: python3 setup.py --exclude-tests -w .

- name: Run integration tests
run: ./scripts/all-integration-tests.sh ./gno/gno.land/pkg/integration . --skip
- name: "Run integration tests (${{ matrix.name }})"
run: ./scripts/all-integration-tests.sh ./gno/gno.land/pkg/integration . --skip --category=${{ matrix.categories }}
49 changes: 40 additions & 9 deletions .github/workflows/run_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
pull_request:

jobs:
generate-matrix:
setup:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
Expand All @@ -30,33 +30,64 @@
chmod +x .github/scripts/generate_matrix.rb
echo "matrix=$(ruby .github/scripts/generate_matrix.rb contract tests/scenario)" >> $GITHUB_OUTPUT

- name: Check out gno
uses: actions/checkout@v4
with:
repository: gnoswap-labs/gno
ref: master
path: ./gno

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.22"

- name: Build gno
run: |
cd gno
make build.gno

- name: Upload gno artifacts
uses: actions/upload-artifact@v4
with:
name: gno-build
path: |
gno/
retention-days: 1

test-gnoswap:
needs: generate-matrix
needs: setup
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix: ${{fromJson(needs.generate-matrix.outputs.matrix)}}
matrix: ${{fromJson(needs.setup.outputs.matrix)}}

steps:
- name: Check out gnoswap repo
uses: actions/checkout@v4

- name: Check out gno(master - before change std prefix)
uses: actions/checkout@v4
- name: Download gno artifacts
uses: actions/download-artifact@v4
with:
repository: gnoswap-labs/gno
ref: master
name: gno-build
path: ./gno

- name: Set up Ruby
uses: ruby/setup-ruby@v1
Comment thread Fixed
with:
ruby-version: 3.4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.22"
cache: true
cache-dependency-path: gno/go.sum

- name: Install gno
- name: Install gno from artifacts
run: |
cd gno
make install.gno
go install ./gnovm/cmd/gno

- name: Update fuzz test seed
run: |
Expand Down
2 changes: 0 additions & 2 deletions contract/r/gnoswap/test/fuzz/gnomod.toml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package fuzz
package math

import (
"math"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package fuzz
package math

import (
"strconv"
Expand Down
2 changes: 2 additions & 0 deletions contract/r/gnoswap/test/fuzz/math/gnomod.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
module = "gno.land/r/gnoswap/test/fuzz/math"
gno = "0.9"
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package fuzz
package math

import (
"gno.land/p/gnoswap/fuzz"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package fuzz
package math

import (
"testing"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package fuzz
package math

import (
"gno.land/p/gnoswap/fuzz"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package fuzz
package math

import (
"testing"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package fuzz
package math

import (
"gno.land/p/gnoswap/fuzz"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package fuzz
package math

import (
"testing"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package fuzz
package math

import (
"gno.land/p/gnoswap/fuzz"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package fuzz
package math

import (
"gno.land/p/gnoswap/fuzz"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package fuzz
package math

import (
"math/bits"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package fuzz
package math

import (
"gno.land/p/gnoswap/fuzz"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package fuzz
package math

import (
"testing"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package fuzz
package math

import (
"gno.land/p/gnoswap/fuzz"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package fuzz
package math

import (
"testing"
Expand Down
Loading
Loading