forked from berkshelf/berkshelf
-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (43 loc) · 1.04 KB
/
ci.yml
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
# testing
name: CI Matrix Testing
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '21 3 * * *'
jobs:
test:
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu, macos, windows]
ruby: [2.7, 3.0, 3.1]
steps:
- run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt-get update && sudo apt-get install graphviz libarchive-dev
elif [ "$RUNNER_OS" == "Windows" ]; then
choco install graphviz
elif [ "$RUNNER_OS" == "macOS" ]; then
brew install graphviz libarchive
else
echo "$RUNNER_OS not supported"
exit 1
fi
shell: bash
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ${{ matrix.ruby }}
- run: bundle exec rake spec
if: always()
- run: bundle exec rake features
if: always()
- run: bundle exec rake style
if: always()