diff --git a/.github/workflows/SmokeTest.yaml b/.github/workflows/SmokeTest.yaml new file mode 100644 index 0000000..b0a090b --- /dev/null +++ b/.github/workflows/SmokeTest.yaml @@ -0,0 +1,43 @@ +name: Smoke Test + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + exec: + runs-on: ubuntu-20.04 + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + - uses: actions/checkout@v2.3.4 + + # Provide required binaries + # fc-cache (fontconfig) + # gsettings (gnome) + - name: install + run: sudo apt-get update && sudo apt-get install -y ansible unzip fontconfig gnome-core snapd snap-confine + + # Uninstall gh in order to avoid error: "A later version is already installed" + - name: Uninstall preconfigured github cli + run: sudo apt-get remove gh + + - name: create vars.yaml + run: | + cat << EOF > vars.yml + mail: some@o.ne + displayName: Some one + gpgKey: "abcdef" + EOF + + - name: Initial smoke test + run: ./devbox -e ansible_become_pass='' + + # Make sure the playbook also succeeds on incremental run + - name: Incremental smoke test + run: ./devbox -e ansible_become_pass='' diff --git a/devbox b/devbox index 43f720e..05ff139 100755 --- a/devbox +++ b/devbox @@ -35,10 +35,13 @@ fi echo "starting ansible ..." echo "====================" +# If you pass "-e ansible_become_pass=