30 lines
469 B
YAML
30 lines
469 B
YAML
name: DevOps Lab CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
smoke-test:
|
|
name: Test repository
|
|
runs-on: lab-host
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: builtin:checkout
|
|
|
|
- name: Run smoke tests
|
|
run: |
|
|
set -eu
|
|
|
|
echo "Running CI pipeline"
|
|
echo "Current user: $(whoami)"
|
|
|
|
git --version
|
|
test -f README.md
|
|
|
|
echo "All checks passed!" |