name: Main
on:
workflow_dispatch:
push:
paths-ignore:
- "*.md"
- ".gitignore"
- "LICENSE"
branches:
- master
tags:
- "**"
pull_request:
paths-ignore:
- "*.md"
- ".gitignore"
- "LICENSE"
branches:
- master
jobs:
lint:
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: hecrj/setup-rust-action@v1
with:
components: clippy,rustfmt
- run: make lint
test:
needs: [lint]
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2
- uses: hecrj/setup-rust-action@v1
- name: Install podman
run: |
sudo apt -y update
sudo apt -y install 'podman'
- name: Start podman
run: |
systemctl restart --user podman
systemctl restart --user podman.socket
- name: Test
run: |
podman pull ubuntu:latest
make test