Skip to content

Commit 1037dc8

Browse files
authored
Merge pull request #4788 from manyfold3d/cache-apt
Cache apt installs and fail tests fast to speed up build process
2 parents fba7549 + ec7d61e commit 1037dc8

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/actions/setup/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ description: Set up Manyfold build environment
44
runs:
55
using: composite
66
steps:
7-
- uses: ruby/setup-ruby@v1
7+
- name: Install system requirements
8+
uses: awalsh128/cache-apt-pkgs-action@latest
9+
with:
10+
packages: assimp-utils
11+
- name: Set up Ruby and install gems
12+
uses: ruby/setup-ruby@v1
813
with:
914
bundler-cache: true
1015
- name: Enable Corepack

.github/workflows/test.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,14 @@ jobs:
2020
RAILS_ENV: test
2121
DATABASE_URL: ${{ matrix.database_url }}
2222
steps:
23-
- name: Install requirements
24-
run: sudo apt install -y assimp-utils
2523
- uses: actions/checkout@v5
2624
- uses: ./.github/actions/setup
2725
- name: Set up database with prepare command so we catch any migration explosions
2826
run: bundle exec rails db:prepare:with_data
2927
- name: Compile assets
3028
run: bundle exec rails assets:precompile
3129
- name: Run tests
32-
run: bundle exec rake
30+
run: bundle exec rspec --fail-fast
3331
- name: Upload Coverage
3432
env:
3533
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}

0 commit comments

Comments
 (0)