small typo fix #54
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: Test and build results | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
tests: | |
name: Run Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Checkout results branch | |
uses: actions/checkout@v3 | |
with: | |
ref: results | |
path: results | |
- name: Install Foundry | |
uses: onbjerg/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Install dependencies | |
run: forge install | |
- run: yarn install --frozen-lockfile | |
- name: Run tests | |
run: yarn test:generate ${{ secrets.ETH_RPC_URL }} | |
- name: Process latex EOA | |
uses: dante-ev/latex-action@latest | |
with: | |
root_file: results.tex | |
compiler: lualatex | |
working_directory: results | |
args: -interaction=nonstopmode -shell-escape | |
- name: Process latex direct | |
uses: dante-ev/latex-action@latest | |
with: | |
root_file: results-direct.tex | |
compiler: lualatex | |
working_directory: results | |
args: -interaction=nonstopmode -shell-escape | |
- name: Save results | |
run: | | |
cd results | |
if [[ `git status --porcelain` ]]; then | |
git config --global user.name 'GitHub Actions Bot' | |
git config --global user.email '<>' | |
git add *.pdf | |
git commit -m "Autogenerated pdf" | |
git push | |
fi | |
lint: | |
name: Run Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 12.x | |
- run: yarn install --frozen-lockfile | |
- run: yarn lint:check | |