Skip to content

Fix: Update Auth method for dependencies #22

Fix: Update Auth method for dependencies

Fix: Update Auth method for dependencies #22

Workflow file for this run

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: 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://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