Skip to content

Commit c3cb76b

Browse files
committed
ci: separate static analysis from tests
1 parent 33a1db3 commit c3cb76b

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

.github/workflows/test.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,6 @@ jobs:
2424
- name: Install OS dependencies
2525
run: sudo apt-get -y install libyaml-dev
2626

27-
# Rush needed for easy installation of latest shfmt
28-
- name: Install rush
29-
run: curl -Ls http://get.dannyb.co/rush/setup | bash
30-
31-
- name: Install shfmt
32-
run: rush snatch dannyben shfmt
33-
3427
- name: Setup Ruby
3528
uses: ruby/setup-ruby@v1
3629
with:
@@ -40,6 +33,22 @@ jobs:
4033
- name: Run tests
4134
run: bundle exec rspec
4235

36+
static_analysis:
37+
name: Static analysis of Example files
38+
39+
runs-on: ubuntu-latest
40+
41+
steps:
42+
- name: Checkout code
43+
uses: actions/checkout@v3
44+
45+
# Rush needed for easy installation of latest shfmt
46+
- name: Install rush
47+
run: curl -Ls http://get.dannyb.co/rush/setup | bash
48+
49+
- name: Install shfmt
50+
run: rush snatch dannyben shfmt
51+
4352
- name: Run shellcheck tests
4453
run: bundle exec run shellcheck
4554

0 commit comments

Comments
 (0)