Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A lot of stuff --- TODO improve the name... #35

Closed
wants to merge 333 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
333 commits
Select commit Hold shift + click to select a range
382f5d1
packages_install.ps1 - print current package
jan-revay Oct 13, 2023
1d893a2
packages_install.ps1 - bugfix - echo on a single line
jan-revay Oct 13, 2023
266c7be
Update debian_specific_packages.sh
jan-revay Oct 13, 2023
52f69a7
Update .editorconfig
jan-revay Oct 13, 2023
4a3b3a9
Windows - MANUAL_INIT_STEPS.md - borders, cursor and dark mode
jan-revay Oct 13, 2023
e660add
Windows - MANUAL_INIT_STEPS.md - night light
jan-revay Oct 13, 2023
a02af65
Update MANUAL_INIT_STEPS.md
jan-revay Oct 13, 2023
24e703b
Windows - schedule AltSnap with Administrator privileges
jan-revay Oct 14, 2023
22e85ea
Update README.md
jan-revay Oct 14, 2023
976313a
Update README.md
jan-revay Oct 14, 2023
0cf3d41
Update run_all.sh
jan-revay Oct 15, 2023
edfd3fc
Update run_all.sh
jan-revay Oct 15, 2023
5494a38
Update Test_WSL_Debian_12.yml
jan-revay Oct 15, 2023
ac9fe2e
packages_install.sh - Debian_12 BUGFIX - `touch .bashrc`
jan-revay Oct 15, 2023
a05617f
README.md - add a TODO
jan-revay Oct 15, 2023
ac4d6c4
Update Test_WSL_Debian_12.yml
jan-revay Oct 15, 2023
940e61a
Update Test_WSL_Debian_12.yml
jan-revay Oct 15, 2023
f23a2e8
Create README.md
jan-revay Oct 15, 2023
b26ac3f
Delete .github/README.md
jan-revay Oct 15, 2023
f7e4672
Create README.md
jan-revay Oct 15, 2023
86287d7
Update README.md
jan-revay Oct 15, 2023
23e0c1d
Update README.md
jan-revay Oct 15, 2023
84a520e
Test_WSL_Debian_12.yml - run the test for matrix of distros
jan-revay Oct 16, 2023
4a6a944
windows.yml - use matrix of windows versions
jan-revay Oct 16, 2023
637eb66
Update windows.yml
jan-revay Oct 16, 2023
0f3e103
Update windows.yml
jan-revay Oct 16, 2023
e35e838
Update windows.yml
jan-revay Oct 16, 2023
fc470b3
Update windows.yml
jan-revay Oct 16, 2023
1a5cc52
run_initPC_on_Linux_containers.yml - renames
jan-revay Oct 16, 2023
9500e8c
Update run_initPC_on_Linux_containers.yml
jan-revay Oct 16, 2023
1968119
run_initPC_on_Linux_containers.yml - add a TODO
jan-revay Oct 16, 2023
ae56fd1
Rename run_initPC_on_Linux_containers.yml to containers.yml
jan-revay Oct 16, 2023
5e82d56
Update windows.yml
jan-revay Oct 16, 2023
e9195f5
Update containers.yml
jan-revay Oct 16, 2023
9b4a527
Rename Test_WSL_Ubuntu_22.04.yml to Ubuntu_22.04_runner.yml
jan-revay Oct 16, 2023
bcca689
Ubuntu_22.04_runner.yml - job naming
jan-revay Oct 16, 2023
b4d7b25
Update Ubuntu_22.04_runner.yml
jan-revay Oct 16, 2023
da7304a
Ubuntu_22.04_runner.yml - add GNOME matrix
jan-revay Oct 16, 2023
576d2d1
Test_Ubuntu_22.04.yml - add a todo
jan-revay Oct 16, 2023
6c894e6
Update Ubuntu_22.04_runner.yml
jan-revay Oct 16, 2023
7e0ff29
pop.yml - add a TODO
jan-revay Oct 16, 2023
850e418
Add Kali Linux support
jan-revay Oct 16, 2023
5995649
containers.yml - add Kali Linux to paths
jan-revay Oct 16, 2023
e419736
Kali Linux - make `run_all.sh` executable
jan-revay Oct 16, 2023
06be9cf
containers.yml - add TODOs
jan-revay Oct 16, 2023
3bdee8b
Update prelude.sh
jan-revay Oct 16, 2023
deaad01
Add `distro_is` function stub
jan-revay Oct 16, 2023
f22aa7d
Update containers.yml
jan-revay Oct 16, 2023
96452ee
Update README.md
jan-revay Oct 16, 2023
7db54de
prelude.sh - add TODOs
jan-revay Oct 16, 2023
e2a1cc3
Update prelude.sh
jan-revay Oct 16, 2023
4e9a961
containers.yml - add Debian:testing
jan-revay Oct 17, 2023
980b54c
containers.yml - Add a TODO
jan-revay Oct 17, 2023
1a3d58c
containers.yml - add Ubuntu:rolling
jan-revay Oct 17, 2023
8b95c95
prelude.sh - Add TODOs
jan-revay Oct 17, 2023
eb6a0e2
containers.yml - add a TODO
jan-revay Oct 17, 2023
8480f40
containers.yml - add a TODO
jan-revay Oct 17, 2023
6a47e5b
containers.yml - change * to **
jan-revay Oct 17, 2023
da89b30
containers.yml - add `cat /etc/os-release`
jan-revay Oct 17, 2023
a14ec39
Update README.md
jan-revay Oct 17, 2023
699a402
prelude.sh - add distro_is and distro_version_ge functions
jan-revay Oct 18, 2023
84d76b9
prelude.sh - change distro_is... functions to exit directly
jan-revay Oct 18, 2023
e6afef0
WSL_Debian: run_all.sh - use distro_is function
jan-revay Oct 18, 2023
13230ff
WSL_Ubuntu: run_all.sh - use distro_is function
jan-revay Oct 18, 2023
421efaa
Update run_all.sh
jan-revay Oct 18, 2023
4034b20
Update prelude.sh
jan-revay Oct 18, 2023
428b827
prelude.sh - add a TODO
jan-revay Oct 18, 2023
35db798
PopOS: run_all.sh - use the distro_is function
jan-revay Oct 18, 2023
1815c84
Kali: run_all.sh - use the distro_is function
jan-revay Oct 18, 2023
c808af2
Update README.md
jan-revay Oct 18, 2023
4c738e9
prelude.sh - bugfix - make variables in functions local
jan-revay Oct 18, 2023
3133d60
Update README.md
jan-revay Oct 18, 2023
2812ed0
Update README.md
jan-revay Oct 18, 2023
14e16d5
Update README.md
jan-revay Oct 19, 2023
e8e3bde
Update README.md
jan-revay Oct 19, 2023
1a08dac
WSL_Ubuntu - merge apt packages into a single list
jan-revay Oct 19, 2023
3ffb190
prelude.sh: schellcheck and shfmt
jan-revay Oct 19, 2023
07386ca
Add `gnome_present` function stub
jan-revay Oct 19, 2023
acc3551
ubuntu_specific_packages.sh - add a TODO
jan-revay Oct 19, 2023
f895522
WSL_Ubuntu: packages_install.sh - make APT_PACKAGES readonly
jan-revay Oct 19, 2023
c2bab56
Add `gnome_present` function
jan-revay Oct 20, 2023
24d5a6e
Use `gnome_present` function where applicable
jan-revay Oct 20, 2023
9301be6
debian_specific_packages.sh - add a TODO
jan-revay Oct 20, 2023
a9160b2
Update debian_specific_packages.sh
jan-revay Oct 20, 2023
7773fc4
Rename WSL_Ubuntu_22.04 to UbuntuCLI (and other dostros also)
jan-revay Oct 20, 2023
dee3798
Update README.md
jan-revay Oct 20, 2023
58194c7
prelude.sh - add a TODO
jan-revay Oct 20, 2023
13702e9
Create shared_gui_packages_install.sh
jan-revay Oct 20, 2023
cc4c4b6
Update sharedConfig.sh
jan-revay Oct 20, 2023
9c539e7
Update sharedConfig.sh
jan-revay Oct 20, 2023
ee3d854
Update README.md
jan-revay Oct 20, 2023
0362826
Update README.md
jan-revay Oct 21, 2023
378f4f9
Update README.md
jan-revay Oct 21, 2023
5f49139
Update README.md
jan-revay Oct 21, 2023
11fcd03
Update README.md
jan-revay Oct 21, 2023
19c52cc
Update README.md
jan-revay Oct 21, 2023
418283f
Update README.md
jan-revay Oct 21, 2023
af105a1
Update README.md
jan-revay Oct 21, 2023
d4a34d5
Update README.md
jan-revay Oct 21, 2023
6d61046
Update README.md
jan-revay Oct 21, 2023
861f1f5
Update README.md
jan-revay Oct 21, 2023
62dc89a
Update README.md
jan-revay Oct 21, 2023
00d8897
Update README.md
jan-revay Oct 21, 2023
df074b8
UbuntuCLI: Install pipx packages as a list
jan-revay Oct 22, 2023
e2ca500
UbuntuCLI: xargs bugfix - add `-0`
jan-revay Oct 22, 2023
bd44836
Update prelude.sh
jan-revay Oct 22, 2023
d3a663c
UbuntuCLI - `xargs pipx install` bugfix
jan-revay Oct 22, 2023
13cb295
Update Ubuntu_22.04_runner.yml
jan-revay Oct 22, 2023
ee34a5b
Update and rename Ubuntu_22.04_runner.yml to Ubuntu_GH.yml
jan-revay Oct 22, 2023
4a6075e
Update Ubuntu_GH.yml
jan-revay Oct 22, 2023
8e01b3c
Update and rename Ubuntu_GH.yml to UbuntuGH.yml
jan-revay Oct 22, 2023
f5e3c90
Update UbuntuGH.yml
jan-revay Oct 22, 2023
8a30e48
Update UbuntuGH.yml
jan-revay Oct 22, 2023
e1a2192
Update UbuntuGH.yml
jan-revay Oct 22, 2023
93975dc
Delete .github/workflows/Test_Ubuntu_22.04.yml
jan-revay Oct 22, 2023
29e168b
UbuntuGH.yml - don't continue on error
jan-revay Oct 22, 2023
33f9d72
Update UbuntuGH.yml
jan-revay Oct 22, 2023
a0a7e34
Update codacy.yml
jan-revay Oct 22, 2023
32e61d0
containers.yml - remove paths filter
jan-revay Oct 22, 2023
6746eed
Update windows.yml
jan-revay Oct 22, 2023
50a5f42
Update README.md
jan-revay Oct 22, 2023
c8e58ff
Update README.md
jan-revay Oct 22, 2023
fbf0c99
Update README.md
jan-revay Oct 22, 2023
796e07f
Update run_all.sh
jan-revay Oct 22, 2023
55bab7c
Update run_all.sh
jan-revay Oct 22, 2023
9787d06
Update packages_install.sh
jan-revay Oct 22, 2023
21bb3c1
prelude.sh - add distro_version_lt
jan-revay Oct 22, 2023
5cdf65c
Update prelude.sh
jan-revay Oct 22, 2023
8693a52
prelude.sh - fix `distro_version_le` function
jan-revay Oct 22, 2023
d04dbe6
Update prelude.sh
jan-revay Oct 22, 2023
e3e659c
Update run_all.sh
jan-revay Oct 22, 2023
698ecf6
Update README.md
jan-revay Oct 22, 2023
610f344
Create pre-commit-hook.yml
jan-revay Oct 22, 2023
917177b
Update pre-commit-hook.yml
jan-revay Oct 22, 2023
3f727f8
Update pre-commit-hook.yml
jan-revay Oct 22, 2023
63c32bd
Update containers.yml
jan-revay Oct 22, 2023
6377d84
prelude.sh - fix shellcheck warnings
jan-revay Oct 22, 2023
febd3f3
prelude.sh - fix shellcheck warnings
jan-revay Oct 22, 2023
580a389
Update README.md
jan-revay Oct 22, 2023
c5305f0
Update README.md
jan-revay Oct 22, 2023
c45c0bb
Update MANUAL_INIT_STEPS.md
jan-revay Oct 25, 2023
c5da373
Add TODOs
jan-revay Oct 28, 2023
2d58db1
Update README.md
jan-revay Nov 18, 2023
8757b5b
Update README.md
jan-revay Nov 18, 2023
03bc809
Update README.md
jan-revay Nov 18, 2023
2ec92f0
Update README.md
jan-revay Nov 18, 2023
7e79938
Update README.md
jan-revay Nov 18, 2023
d647716
Update README.md
jan-revay Nov 18, 2023
b4bb896
Update README.md
jan-revay Nov 18, 2023
5ee2483
Update README.md
jan-revay Nov 18, 2023
22017c8
Update README.md
jan-revay Nov 18, 2023
bf17dc8
Update README.md
jan-revay Nov 18, 2023
15427d5
Update README.md
jan-revay Nov 18, 2023
fc16757
Update README.md
jan-revay Nov 18, 2023
6015705
Update README.md
jan-revay Nov 18, 2023
959d965
Update README.md
jan-revay Nov 18, 2023
9f489a7
Update README.md
jan-revay Nov 18, 2023
8583c68
Update README.md
jan-revay Nov 18, 2023
f47099f
Update README.md
jan-revay Nov 18, 2023
5785045
Update README.md
jan-revay Nov 18, 2023
33b7260
Update README.md
jan-revay Nov 18, 2023
60e54de
Update README.md
jan-revay Nov 18, 2023
b799436
Update README.md
jan-revay Nov 18, 2023
1065c4e
Update README.md
jan-revay Nov 18, 2023
e3c622d
Update README.md
jan-revay Nov 18, 2023
9941f2f
Update README.md
jan-revay Nov 18, 2023
639ff20
Update README.md
jan-revay Nov 18, 2023
2290fde
Update README.md
jan-revay Nov 18, 2023
a7eb8c7
Update README.md
jan-revay Nov 18, 2023
df6428e
README.md - update branching strategy
jan-revay Nov 18, 2023
ff8e79d
Update README.md
jan-revay Nov 18, 2023
734dce6
Update README.md
jan-revay Nov 18, 2023
bf4beab
Update README.md
jan-revay Nov 18, 2023
cde71f8
Update ./Ansible/README.md
jan-revay Nov 18, 2023
69b93a7
Update README.md
jan-revay Nov 18, 2023
a2d8615
Update README.md
jan-revay Nov 18, 2023
9e9e8aa
Update README.md
jan-revay Nov 18, 2023
6bca7c6
Update README.md
jan-revay Nov 18, 2023
32b5116
Update README.md
jan-revay Nov 18, 2023
39fc284
Update README.md
jan-revay Nov 18, 2023
8124765
Update README.md
jan-revay Nov 19, 2023
ac29982
Update README.md
jan-revay Nov 19, 2023
983f542
Update README.md
jan-revay Nov 19, 2023
2a7ec80
Update README.md
jan-revay Nov 19, 2023
3854ccb
README.md - add feature branches to workflow diagram
jan-revay Nov 19, 2023
10c4ea4
README.md - add idempotency and transitivity diagrams
jan-revay Nov 24, 2023
bb71e47
Update README.md
jan-revay Nov 24, 2023
853db27
Update README.md
jan-revay Nov 24, 2023
1f0c39c
Update README.md
jan-revay Nov 24, 2023
90bf8c1
Update README.md
jan-revay Nov 24, 2023
73d574f
Update README.md
jan-revay Nov 26, 2023
1354ee4
Update README.md
jan-revay Nov 26, 2023
5fb2585
Update README.md
jan-revay Nov 26, 2023
3730994
Update README.md
jan-revay Nov 26, 2023
67389c6
Create README.md
jan-revay Feb 5, 2024
acd5ba5
Update README.md
jan-revay Feb 5, 2024
7bb6f8a
Update README.md
jan-revay Feb 5, 2024
54b0ff9
Create packages_install.sh
jan-revay Feb 5, 2024
134ad15
Update packages_install.sh
jan-revay Feb 5, 2024
97aba2e
Update packages_install.sh
jan-revay Feb 5, 2024
fafecad
Update packages_install.sh
jan-revay Feb 5, 2024
7fdbfc5
Update README.md
jan-revay Feb 5, 2024
9d9d508
Update README.md
jan-revay Feb 5, 2024
d46eada
Update README.md
jan-revay Feb 5, 2024
07a1fec
Update packages_install.sh
jan-revay Feb 5, 2024
3c669c5
Update packages_install.sh
jan-revay Feb 5, 2024
3f2d63a
Update README.md
jan-revay Feb 5, 2024
e357a84
Update packages_install.sh
jan-revay Feb 5, 2024
c5c765e
Update packages_install.sh
jan-revay Feb 6, 2024
cd65588
Update packages_install.sh
jan-revay Feb 14, 2024
94d7a4d
Create manual_steps.md
jan-revay Feb 14, 2024
c988788
Create package_suggestions.md
jan-revay Feb 20, 2024
f4487b9
Update README.md
jan-revay Mar 7, 2024
48e1b61
packages_install.ps1 - add CPUID.CPU-Z and CPUID.powerMAX
jan-revay Mar 8, 2024
0dd99c8
Add new words to the workspace dictionary.
jan-revay Mar 9, 2024
a33b1ce
Use Powershell 7 in Windows GitHub actions runners
jan-revay Mar 9, 2024
4d7fa54
Fix Powershell lint warnings
jan-revay Mar 9, 2024
1477d9f
Refresh path variable after Python and Pipx install
jan-revay Mar 9, 2024
f964745
MacOS/packages_install.sh - Fix shellcheck warnings
jan-revay Mar 9, 2024
c9e7ef3
Fix "Winget not found" error in Windows Github actions
jan-revay Mar 9, 2024
866dc68
Add a TODO
jan-revay Mar 9, 2024
a23375a
Try fixing winget not found issue
jan-revay Mar 9, 2024
7a75251
windows.yml - add a smoke test for `winget` installation
jan-revay Mar 9, 2024
04bb657
Update windows.yml
jan-revay Mar 9, 2024
9abd748
Update windows.yml
jan-revay Mar 9, 2024
0efc9f9
Update windows.yml
jan-revay Mar 9, 2024
6aaf825
windows.yml - try fixing winget installation
jan-revay Mar 9, 2024
1e0b2b0
Windows: Remove debug test for `winget` presence
jan-revay Mar 9, 2024
f996396
Update MANUAL_INIT_STEPS.md
jan-revay Mar 9, 2024
6964470
Update MANUAL_INIT_STEPS.md
jan-revay Mar 9, 2024
ee8534e
Remove Path refresh used for debugging `winget`
jan-revay Mar 9, 2024
27dbd66
Merge branch 'devel' of https://github.com/jan-revay/initPC into devel
jan-revay Mar 9, 2024
555b1eb
Use lists in Windows10/optional_packages_install.ps1
jan-revay Mar 9, 2024
c7870e8
Rename Windows_10 to Windows_1X
jan-revay Mar 9, 2024
eeeff59
windows.yml - fix path to Windows_1X
jan-revay Mar 9, 2024
2dc485c
windows.yml - fix paths after directory rename
jan-revay Mar 9, 2024
09655e5
Update packages_install.ps1
jan-revay Mar 9, 2024
274ea70
Update interactive_part.sh
jan-revay Mar 9, 2024
3e27a1f
Update packages_install.ps1
jan-revay Mar 9, 2024
17448b5
Add a TODO
jan-revay Mar 9, 2024
cc950bb
Windows - optional_packages_install.ps1: Add 'Maxon.CinebenchR23'
jan-revay Mar 10, 2024
4ced62b
Windows - optional_packages_install.ps1: add FinalWire.AIDA64.Engineer
jan-revay Mar 10, 2024
d3a35fc
Windows - optional_packages_install.ps1: add PrimateLabs.Geekbench.6
jan-revay Mar 10, 2024
c9e4b24
Windows - optional_packages_install.ps1: add Geeks3D.FurMark
jan-revay Mar 10, 2024
97f09f0
Windows - optional_packages_install.ps1: add Windows - optional_packa…
jan-revay Mar 10, 2024
72132d2
Windows - optional_packages_install.ps1: add a TODO
jan-revay Mar 10, 2024
2da22c7
Windows - optional_packages_install.ps1: add a TODO
jan-revay Mar 10, 2024
87e4792
Windows - optional_packages_install.ps1: add Windows - optional_packa…
jan-revay Mar 10, 2024
4c5e548
Windows - optional_packages_install.ps1: add GFX Memory Speed Benchmark
jan-revay Mar 10, 2024
674c4e1
Windows - optional_packages_install.ps1: add Antutu.AntutuBenchmark
jan-revay Mar 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ shell_variant = bash # --language-variant
space_redirects = true # like -sr
switch_case_indent = true # like -ci
trim_trailing_whitespace = true

# TODO add config for ps1
45 changes: 45 additions & 0 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# README

## TODO

- add build test for Android (Temrux)
- add run test for my .vimrc (maybe add it to the dotfiles repo instead)
- draw dependency graph here
- in matrix executions - if one branch fails, the whole task should fail also (though the tests should be executed)
- clean the Actions logs (delete or hide outdated logs)

## Problems

- snaps and flatpacks in Docker containers (consider making them work or avoiding them)

## Triggers strategy (TODO)

- use matrix for versions of the same distro
- separate action for each distro with separate paths filters
- the test itself will be a callable action that will be called from distro actions
- changes in WSL_Ubuntu will trigger checks of everything as everything depends on
stuff in that directory (github action for WSL_Ubuntu will call everything itself
and everything will be made callable) - name the test "Test_Everything"
- pull_request event will also trigger Test_Everything
- TODO - but read Github Actions documentation first. Maybe there is even more elegant way.

## Triggers

- for push only stuff that was influenced by the change will be checked
- for pull request everything will be run always (regardless whether files in question changed or not) - the point of this is not to forget anything when changing filenames or adding new files

## Example GitHub actions from similar repos

### Dotfile managers

1. <https://github.com/bevry/dorothy/blob/master/.github/workflows/dorothy-workflow.yml>
2. Markdown management:
<https://github.com/isocpp/CppCoreGuidelines/blob/master/.github/workflows/build.yml>
<https://github.com/isocpp/CppCoreGuidelines/blob/master/scripts/Makefile>

### Other repos


## TODO CI checks to add

1. Check .md files with spellchecker
51 changes: 0 additions & 51 deletions .github/workflows/Test_WSL_Ubuntu_22.04.yml

This file was deleted.

52 changes: 52 additions & 0 deletions .github/workflows/UbuntuGH.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Ubuntu GH

on:
push:
branches: [ "devel", "testing", "stable", "LTS" ]
paths:
- '*.sh'
- 'CommonInitScripts/**.sh*'
- 'UbuntuCLI/**.sh'
- 'Ubuntu_22.04/**.sh'
- '.github/workflows/UbuntuGH.yml'
pull_request:
branches: [ "devel", "testing", "stable", "LTS" ]

jobs:
build:
name: ${{ matrix.install-gui }}
runs-on: ubuntu-22.04
strategy:
matrix:
install-gui: ['GNOME', 'NO GUI'] # TODO add this to containers.yml
steps:
- name: Update APT & upgrade
run: sudo apt-get update -y && sudo apt-get upgrade -y
# TODO - BUG - use the correct respective branch - check that it is resolved
- name: ${{ matrix.install-gui }}
run: |
if [[ "${{ matrix.install-gui }}" == 'GNOME' ]]; then
sudo apt-get install -y ubuntu-desktop-minimal
fi
- uses: actions/checkout@v4
- name: print `github.ref=${{ github.ref }}` and `github.sha=${{ github.sha }}`
run: "echo Ref: ${{ github.ref }}, SHA: ${{ github.sha }}"

- name: Running iniPC script for the 1st time should not fail.
run: ./run_init.sh --noninteractive
- name: save ~/ for idempotency test
run: cp -r ~/ /tmp/old_home/
- name: Running iniPC script for the 2nd time should not fail.
run: ./run_init.sh --noninteractive

# TODO split this command to multiple lines
# TODO also test that the first run of initPC script does change the state of home dir
# TODO - test whether the test works as expected
- name: The initPC script should be idempotent on ~/ directory (WIP - needs testing)
run: |
cd ~
pwd
find . -type f \( ! -iname "*.log" ! -path "*/.dotfiles/logs/HEAD" \
! -path "*work/_temp/*" ! -path "./runners/*" \
! -name ".wget-hsts" \) -print0 |
xargs -0 -I{} bash -c 'if ! diff "$1" "/tmp/old_home/$1"; then echo "diff failed for: $1"; exit 1; fi' bash {}
4 changes: 2 additions & 2 deletions .github/workflows/codacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ name: Codacy Security Scan

on:
push:
branches: [ "stable", "testing", "devel", "minimal" ]
branches: [ "stable", "testing", "devel", "LTS" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "stable", "testing", "devel", "minimal" ]
branches: [ "stable", "testing", "devel", "LTS" ]
schedule:
- cron: '20 13 * * 3'

Expand Down
82 changes: 82 additions & 0 deletions .github/workflows/containers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: Containers

# TODO try using platform matrix and a single file for Ubuntu and Debian
# TODO - set trigger paths, remove unnecessary commands, unify with Ubuntu script
# TODO test
# TODO merge WSL_Debian and WSL_Ubuntu_22.04 CI into a single .yml file
# TODO Debian fails to build because of this bug: https://github.com/llvm/llvm-project/issues/62475
# TODO - problem - changes in e.g. Kali Linux will thanks to the matrix trigger CI pipeline also for Debian etc. which might not be needed
# TODO add correct trigger paths (e.g. for PopOS etc.)
# TODO output of try_platform for Ubuntu does not show in logs
# TODO change * to ** in all workflows (to support nested directories)

on:
push:
# TODO add relevant paths resp. rewrite as described in the readme
branches: [ "devel", "testing", "stable", "LTS" ]
paths:
- '**.sh'
- '.github/workflows/containers.yml'
pull_request:
branches: [ "devel", "testing", "stable", "LTS" ]

jobs:
distro-test:
continue-on-error: true
runs-on: ubuntu-22.04
name: ${{ matrix.container }}
strategy:
matrix: # TODO add gnome as an additional row in the matrix
container:
- 'ubuntu:23.04' # https://hub.docker.com/_/ubuntu
- 'ubuntu:22.04'
- 'ubuntu:rolling'
- 'debian:12' # https://hub.docker.com/_/debian
- 'debian:testing'
- 'kalilinux/kali-rolling' # https://hub.docker.com/r/kalilinux/kali-rolling
- 'nycticoracs/pop_os:22.04' # PopOS TODO add link
container:
image: ${{ matrix.container }}
# TODO exit on push with commit message "Add a TODO"

# TODO - consider making these steps some kind of subroutine
# or some other way to avoid redundant runs in the matrix
# consider using dependencies for that: https://stackoverflow.com/questions/58457140/dependencies-between-workflows-on-github-actions
steps: # TODO - exit if the change was in the path that is not a dependency
# - name: "set APT to non-interactive"
# shell: bash
# run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections"
- name: "Update APT"
run: "apt-get update -y"
- name: "Install `git` and `sudo`"
run: "apt-get install -y git sudo"
- name: "Checkout repo"
uses: actions/checkout@v4
- name: print `github.ref=${{ github.ref }}`
run: echo ${{ github.ref }}
- name: print `github.sha=${{ github.sha }}`
run: echo ${{ github.sha }}
- name: "cat /etc/os-release"
run: cat /etc/os-release
- name: Running iniPC script for the 1st time should not fail.
run: ./run_init.sh --noninteractive
- name: save ~/ for idempotency test
run: cp -r ~/ /tmp/old_home/
- name: Running iniPC script for the 2nd time should not fail.
run: ./run_init.sh --noninteractive
# TODO split this command to multiple lines
# TODO also test that the first run of initPC script does change the state of home dir
# TODO - test whether the test works as expected
# TODO sync the idempotency test between linux distros (this is the most recent)
- name: The initPC script should be idempotent on ~/ directory (WIP - needs testing)
run: |
cd ~
pwd
find . -type f \( ! -iname "*.log" ! -path "*/.dotfiles/logs/HEAD" \
! -path "*work/_temp/*" ! -path "./runners/*" \
! -path "./x/helix/target/release/.fingerprint/*" \
! -path "./.cargo/registry/index/*" \
! -path "./x/helix/target/release/build/helix-term*" \
! -path "./x/helix/target/.rustc_info.json" \
! -name ".wget-hsts" \) -print0 |
xargs -0 -I{} bash -c 'if ! diff -C 30 "/tmp/old_home/$1" "$1"; then echo "diff failed for: $1"; exit 1; fi' bash {}
7 changes: 4 additions & 3 deletions .github/workflows/fast_forward_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ on:
issue_comment:
types: [created]

# TODO the action is broken - fix

jobs:
fast_forward_job:
name: Fast Forward Merge
Expand All @@ -10,9 +12,8 @@ jobs:
steps:
# To use this repository's private action, you must check out the repository
- name: Checkout
uses: actions/checkout@v3
- name: Fast Forward PR
id: ff-action
uses: actions/checkout@v3
- name: Fast Forward PR
uses: endre-spotlab/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
67 changes: 67 additions & 0 deletions .github/workflows/pop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# TODO - move to containers.yml

name: Pop_OS - iniPC script

# TODO try using platform matrix and a single file for Ubuntu and Debian
# TODO - set trigger paths, remove unnecessary commands, unify with Ubuntu script
# TODO test
# TODO fix PopOS init script itself...
# TODO standardize workflow names

on:
push:
branches: [ "devel", "testing", "stable", "minimal" ]
paths:
- 'run_init.sh'
- 'prelude.sh'
- 'CommonInitScripts/*.sh*'
- '.github/workflows/pop.yml'
- 'WSL_Ubuntu_22.04/*.sh'
- 'PopOS_22.04/*.sh'
pull_request:
branches: [ "devel", "testing", "stable", "minimal" ]
paths:
- 'run_init.sh'
- 'prelude.sh'
- 'CommonInitScripts/*.sh*'
- '.github/workflows/pop.yml'
- 'WSL_Ubuntu_22.04/*.sh'
- 'PopOS_22.04/*.sh'

# TODO try caching the PopOS container
# see: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows
jobs:
build:
runs-on: ubuntu-22.04
container: "nycticoracs/pop_os:22.04"
steps:
# - name: "set APT to non-interactive"
# shell: bash
# run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections"
- name: "Update APT"
run: "apt-get update -y"
- name: "Install git"
run: "apt-get install -y git sudo"
- name: "checkout repo"
uses: actions/checkout@v4
- name: print `github.ref=${{ github.ref }}`
run: echo ${{ github.ref }}
- name: print `github.sha=${{ github.sha }}`
run: echo ${{ github.sha }}
- name: Running iniPC script for the 1st time should not fail.
run: ./run_init.sh --noninteractive
- name: save ~/ for idempotency test
run: cp -r ~/ /tmp/old_home/
- name: Running iniPC script for the 2nd time should not fail.
run: ./run_init.sh --noninteractive
# TODO split this command to multiple lines
# TODO also test that the first run of initPC script does change the state of home dir
# TODO - test whether the test works as expected
- name: The initPC script should be idempotent on ~/ directory (WIP - needs testing)
run: |
cd ~
pwd
find . -type f \( ! -iname "*.log" ! -path "*/.dotfiles/logs/HEAD" \
! -path "*work/_temp/*" ! -path "./runners/*" \
! -name ".wget-hsts" \) -print0 |
xargs -0 -I{} bash -c 'if ! diff "$1" "/tmp/old_home/$1"; then echo "diff failed for: $1"; exit 1; fi' bash {}
25 changes: 25 additions & 0 deletions .github/workflows/pre-commit-hook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: pre-commit hook

on:
push:
branches: [ "devel", "testing", "stable", "LTS" ]
pull_request:
branches: [ "devel", "testing", "stable", "LTS" ]

jobs:
build:
# name: ${{ matrix.install-gui }}
runs-on: ubuntu-22.04

steps:
- name: Update APT
run: sudo apt-get update -y
- name: Install dependencies
run: sudo apt install -y shfmt shellcheck

- uses: actions/checkout@v4
- name: print `github.ref=${{ github.ref }}` and `github.sha=${{ github.sha }}`
run: "echo Ref: ${{ github.ref }}, SHA: ${{ github.sha }}"

- name: pre-commit hook should not fail
run: ./pre-commit-hook.sh
Loading
Loading