feat: add tests for linux (#39)

* feat: add dummy test for linux

* feat: add multiple test execution

* fix: update exec of multiple scripts for linux

* fix: execute tests with code from the branch

* fix: fail test exec if at least one test fail

* fix: typo

* wip: test if symlink work

* feat: add new test for check setup of light256 theme

* feat: when theme enabled and not set it default to dark256

* feat: increase tests coverage of checking themes activation

* refactor: rename tests_linux job

* chore: add changelog entry
This commit is contained in:
Maciej Sypien 2024-09-22 17:13:24 +02:00 committed by GitHub
parent 6595a51154
commit f01574b318
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 436 additions and 25 deletions

34
.github/workflows/dev-push-check.yml vendored Normal file
View file

@ -0,0 +1,34 @@
name: dev-push-check
run-name: ${{ github.actor }} pushed new code 💻
on: [push] #, pull_request]
jobs:
lint_shellcheck:
runs-on: ubuntu-latest
steps:
- name: Install shellcheck
run: sudo apt-get install -y shellcheck
- name: Checkout repo
uses: actions/checkout@main
- name: Lint files against shellcheck
run: make lint_shellcheck
lint_shfmt:
runs-on: ubuntu-latest
steps:
- name: Install shfmt
run: sudo apt-get install -y shfmt
- name: Checkout repository
uses: actions/checkout@main
- name: Lint files against shfmt
run: make lint_shfmt
tests_linux:
runs-on: ubuntu-latest
needs:
- lint_shfmt
- lint_shellcheck
steps:
- name: Install required software
run: sudo apt install -y tmux git
- name: Checkout repository
uses: actions/checkout@main
- name: Execute all linux tests and check results
run: ./tests/run_all_linux_tests.sh

View file

@ -1,22 +0,0 @@
name: GitHub Actions
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
on: [push]
jobs:
lint-shellcheck:
runs-on: ubuntu-latest
steps:
- name: install shellcheck
run: sudo apt-get install -y shellcheck
- name: checkout repo
uses: actions/checkout@main
- name: lint files against shellcheck
run: make lint_shellcheck
lint-shfmt:
runs-on: ubuntu-latest
steps:
- name: install shfmt
run: sudo apt-get install -y shfmt
- name: checkout repo
uses: actions/checkout@main
- name: lint files against shfmt
run: make lint_shfmt