actions-playground/.gitea/workflows/ci.yaml

31 lines
708 B
YAML

name: CI
on:
- push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: "https://github.com/actions/checkout@v3"
- name: Hash the files
uses: theowenyoung/folder-hash@v3
id: hash-stuff
with:
path: .gitea/workflows/
- name: Cache stuff
uses: "https://github.com/actions/cache@v3"
with:
path: .
key: stuff-${{ steps.hash-stuff.outputs.hash }}
- run: sleep 5
- name: Hello world
run: docker run hello-world
- run: docker ps
- run: docker container ls
- run: env
- uses: actions/upload-artifact@v3
with:
name: readme
path: README.md