name: lint on: push: pull_request: jobs: lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Install linters run: | if [ "$(id -u)" -eq 0 ]; then SUDO=""; else SUDO="sudo"; fi $SUDO apt-get update -qq $SUDO apt-get install -y -qq shellcheck yamllint - name: shellcheck run: shellcheck scripts/*.sh - name: yamllint run: yamllint -d relaxed actions/ .gitea/ consumer-example/ smoke: runs-on: ubuntu-latest needs: lint steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - name: hello uses: ./actions/hello with: name: smoke-test - name: notify uses: ./actions/notify with: status: ok message: smoke test - name: auto-tag (dry run) id: tag uses: ./actions/auto-tag with: tag-type: dev - name: show result run: echo "next tag would be ${{ steps.tag.outputs.tag }}"