-
Notifications
You must be signed in to change notification settings - Fork 114
61 lines (57 loc) · 1.69 KB
/
ci.yml
File metadata and controls
61 lines (57 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: CI
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install Ruby and dependencies
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: "3.4"
- name: Install shfmt
run: sudo apt-get install shfmt
- run: make lint-scripts
- run: make check-format
- run: make lint-ruby
hatchet:
name: "Hatchet (${{ matrix.stack }})"
runs-on: ubuntu-22.04
needs: lint
strategy:
fail-fast: false
matrix:
stack: ["heroku-22", "heroku-24"]
env:
HATCHET_APP_LIMIT: 100
HATCHET_RUN_MULTI: 1
HATCHET_EXPENSIVE_MODE: 1
PARALLEL_SPLIT_TEST_PROCESSES: 6
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
HEROKU_API_USER: ${{ secrets.HEROKU_API_USER }}
HEROKU_DISABLE_AUTOUPDATE: 1
# TODO: Remove once Hatchet supports GitHub Actions natively:
# https://github.com/heroku/hatchet/pull/189
HATCHET_BUILDPACK_BRANCH: ${{ github.head_ref || github.ref_name }}
HATCHET_BUILDPACK_BASE: https://github.com/heroku/heroku-buildpack-clojure
# Default stack for all Heroku apps created by Hatchet
DEFAULT_APP_STACK: ${{ matrix.stack }}
steps:
- uses: actions/checkout@v6
- name: Install Ruby and dependencies
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: "3.4"
- name: Hatchet setup
run: bundle exec hatchet ci:setup
- name: Run Hatchet integration tests
run: bundle exec parallel_split_test test/spec/