This repository has been archived by the owner on May 28, 2024. It is now read-only.
Merge branch 'main' of github.com:rocket-connect/benchmarks #9
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: Run benchmarks | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- README.md | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: fregante/setup-git-user@v2 | |
- uses: cachix/install-nix-action@v24 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.ivy2/cache | |
~/.sbt | |
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }} | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
async-graphql/target | |
juniper/target | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
#- uses: actions/cache@v3 | |
# with: | |
# path: ~/.local/share/virtualenvs | |
# key: ${{ runner.os }}-pipenv-${{ hashFiles('**/Pipfile.lock') }} | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
- name: Run benchmarks | |
run: nix-shell --quiet --run ./run.cr | |
- name: Push readme | |
if: ${{ github.event_name == 'push' }} | |
run: | | |
git add README.md | |
git commit -m "update readme" | |
git push |