Nightly Tests #27
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: Nightly Tests | |
# Run main once a day at 2 am PT: | |
on: | |
schedule: | |
- cron: '0 19 * * *' | |
env: | |
CARGO_TERM_COLOR: always | |
CARGO_NET_RETRY: 10 | |
RUST_BACKTRACE: short | |
RUSTUP_MAX_RETRIES: 10 | |
jobs: | |
nightly: | |
permissions: | |
contents: read | |
packages: write | |
runs-on: [ self-hosted, skylake40 ] | |
env: | |
FORCE_COLOR: 1 | |
steps: | |
- name: Install earthly | |
uses: earthly/actions-setup@v1 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
version: 0.8.15 | |
- uses: actions/checkout@v3 | |
# By default a merge commit is checked out. If you look at the SHA that | |
# is checked out, it doesn't match your local commit SHA. Rather it's | |
# the SHA of a merge commit (your branch + base branch). So for | |
# pull_request actions it won't match the commit ID on the branch. This | |
# is confusing for storing benchmark results because the commit ID we | |
# find during `git rev-parse` exists nowhere in the history. Since we | |
# don't do merge commits anyways, we make sure we check out the head | |
# commit (which will exist in the history). | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
submodules: true | |
- name: Print ulimit | |
run: ulimit -a | |
- name: Earthly version | |
run: earthly --version | |
- name: Run CI | |
run: earthly -P --ci +test-slt |