Merge pull request #205 from gammaswap/feat/borrow-roundup-invariant-… #224
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Compile/Test/Publish | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| publish-gpr: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: 18 | |
| registry-url: https://npm.pkg.github.com/ | |
| scope: '@gammaswap' | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| - run: yarn install | |
| env: | |
| NODE_AUTH_TOKEN: ${{secrets.GS_TOKEN}} | |
| - run: yarn run test | |
| - run: yarn run fuzz | |
| - name: Publish Package | |
| if: "(contains(github.event.head_commit.message, 'publish package'))" | |
| run: npm publish | |
| env: | |
| NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} |