Fix: Update Auth method for dependencies #28
Workflow file for this run
This file contains 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 | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.GH_TOKEN }} | |
submodules: recursive | |
- name: Auth deps | |
run: echo ${{ secrets.GH_TOKEN }} | gh auth login --with-token | |
- name: Check users | |
run: gh api user | jq -r '.login' | |
- name: store credentials | |
run: | | |
echo "Starting git login configs..." | |
touch ${{ secrets.CREDENTIAL_PATH }} | |
echo "https://${{ secrets.USER }}:${{ secrets.GH_TOKEN }}@github.com" > ${{ secrets.CREDENTIAL_PATH }} | |
git config --global credential.helper 'store --file ${{ secrets.CREDENTIAL_PATH }}' | |
git config --global credential.helper 'cache --timeout=3600' | |
git config --global user.email ${{ secrets.EMAIL }} | |
git config --global user.name ${{ secrets.USER }} | |
- name: Get repo | |
run: git clone https://${{ secrets.GH_TOKEN }}@github.com/UMAprotocol/oev-contracts.git | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Install deps | |
run: forge install | |
- name: Check gas snapshots | |
run: forge snapshot --check | |
- name: Run tests | |
run: forge test |