Skip to content

CI testing

CI testing #1

Workflow file for this run

name: Commit Workflow
on:
push:
workflow_dispatch:
jobs:
no-tty-in-ci:
name: Ensure no TTY if user does not need to input anything
runs-on: ubuntu-latest
env:
ARTIFACTS_REPOSITORY_USERNAME: ${{ secrets.ARTIFACTS_REPOSITORY_USERNAME }}
ARTIFACTS_REPOSITORY_PASSWORD: ${{ secrets.ARTIFACTS_REPOSITORY_PASSWORD }}
ANSIBLE_VAULT_PW: ${{ secrets.ANSIBLE_VAULT_PW }}
PLASMACTL_KEYRING_PASSWORD: ${{ secrets.PLASMACTL_KEYRING_PASSWORD }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Commands
run: |
set -x
date
pwd
whoami
make deps build
ls -lah bin/launchr
#get random commit of existing archive
#use it as override to sync
./bin/launchr bump --sync --username "${ARTIFACTS_REPOSITORY_USERNAME}" --password "${ARTIFACTS_REPOSITORY_PASSWORD}" --vault-pass "${ANSIBLE_VAULT_PW}" --keyring-passphrase "${PLASMACTL_KEYRING_PASSWORD}" --override "${OVERRIDDEN_COMPARISON_REF}"
commands-ok:
name: Ensure main commands do not fail
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Commands
run: |
set -x
date
pwd
whoami
make deps build
ls -lah bin/launchr
./bin/launchr bump
go-linters:
name: Run linters
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Commands
run: |
set -x
date
pwd
whoami
make lint
go-tests:
name: Run Go tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Commands
run: |
set -x
date
pwd
whoami
make test