fixed aqua ship strategy with the same count of tokens but different … #21
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: CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| env: | |
| FOUNDRY_PROFILE: ci | |
| jobs: | |
| run-ci: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| persist-credentials: false | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| with: | |
| version: nightly | |
| - name: Install deps | |
| run: forge install | |
| - name: Create GitHub App Token | |
| uses: actions/create-github-app-token@v2 | |
| id: app-token | |
| with: | |
| app-id: ${{ secrets.CI_ROBOT_APP_ID }} | |
| private-key: ${{ secrets.CI_ROBOT_APP_PRIVATE_KEY }} | |
| owner: ${{ github.repository_owner }} | |
| - name: Setup git credentials for GitHub App | |
| run: | | |
| git config --global url."https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/".insteadOf "https://github.com/" | |
| git config --global url."https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/".insteadOf "[email protected]:" | |
| git config --global url."https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/".insteadOf "ssh://[email protected]/" | |
| - name: Install node modules | |
| run: npm install | |
| - name: Check gas snapshots | |
| run: forge snapshot --check | |
| - name: Run tests | |
| run: forge test |