Skip to content

Commit

Permalink
Actions: Separate coverage workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ko1nksm committed Aug 12, 2024
1 parent 68a7daf commit 35c0013
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/test.yml → .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,25 @@
name: Test
name: Coverage

on: [push]

env:
FORCE_COLOR: 1

jobs:
test:
ubuntu-jammy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install packages
run: |
sudo apt-get update
sudo apt-get install -y bash busybox ksh mksh posh yash zsh kcov
sudo apt-get install -y bash kcov
- name: Install shellspec
run: |
echo "${HOME}/.local/bin" >> "$GITHUB_PATH"
curl -fsSL https://git.io/shellspec | sh -s master -y
- name: Check code
run: make check_with_docker
- name: Test in various shells
run: make test_in_various_shells
- name: Measure code coverage
run: make test_with_coverage
- name: Send code coverage
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/ubuntu-jammy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Ubuntu Jammy Jellyfish

on: [push]

env:
FORCE_COLOR: 1

jobs:
ubuntu-jammy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install packages
run: |
sudo apt-get update
sudo apt-get install -y bash busybox ksh mksh posh yash zsh
- name: Install shellspec
run: |
echo "${HOME}/.local/bin" >> "$GITHUB_PATH"
curl -fsSL https://git.io/shellspec | sh -s master -y
- name: Test in various shells
run: make test_in_various_shells

0 comments on commit 35c0013

Please sign in to comment.