Skip to content

refactor(p/int256): changes to the int256 package implementation #3296

refactor(p/int256): changes to the int256 package implementation

refactor(p/int256): changes to the int256 package implementation #3296

Workflow file for this run

name: run-test
on:
pull_request:
jobs:
generate-matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.4
- name: Install bundler
run: gem install bundler
- name: Install ruby gems
run: bundle install
- name: Generate test matrix
id: set-matrix
run: |
chmod +x .github/scripts/generate_matrix.rb
echo "matrix=$(ruby .github/scripts/generate_matrix.rb contract tests/scenario)" >> $GITHUB_OUTPUT
test-gnoswap:
needs: generate-matrix
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix: ${{fromJson(needs.generate-matrix.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
with:
repository: gnoswap-labs/gno
ref: master
path: ./gno
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.22"
- name: Install gno
run: |
cd gno
make install.gno
- name: Update fuzz test seed
run: |
chmod +x .github/scripts/update_fuzz_seed.sh
.github/scripts/update_fuzz_seed.sh
- name: "Run tests for ${{ matrix.name }}"
run: |
chmod +x .github/scripts/run_tests.rb
ruby .github/scripts/run_tests.rb \
-f "${{ matrix.folder }}" \
-r "/home/runner/work/gnoswap/gnoswap/gno"