feat(explorer/graphql): simple graph ql server #672
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: pre-commit hooks | |
# Run on pull requests and commits to main | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
env: | |
# Skip a few hooks: Golangci-lint and go-tests have their own actions. Allow lints against main commits. | |
SKIP: golangci-lint,run-go-tests,no-commit-to-branch | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- name: Install Python | |
uses: actions/setup-python@v5 | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 'stable' | |
- name: Add foundry bin to path | |
# Required to allow pre-commit hooks to install & find foundryup binary | |
# See https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#adding-a-system-path | |
# Matches FOUNDRY_DIR set in scripts/install_foundry.sh | |
run: echo "${HOME}/.foundry/bin" >> $GITHUB_PATH | |
- name: Run pre-commit hooks | |
uses: pre-commit/action@v3.0.0 | |
# TODO(corver): Notify slack on failure on main |