Compare commits
5 Commits
2deab66aa1
...
8ed34137d9
Author | SHA1 | Date | |
---|---|---|---|
8ed34137d9 | |||
bcf39b6cc6 | |||
a72e6ea2f3 | |||
a2a8eca3b2 | |||
70b34f6025 |
|
@ -7,47 +7,6 @@ on:
|
||||||
- feature/**
|
- feature/**
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check:
|
|
||||||
name: Run pre-commit checks
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container: catthehacker/ubuntu:act-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Setup go
|
|
||||||
uses: actions/setup-go@v3
|
|
||||||
with:
|
|
||||||
go-version: ">=1.20.1"
|
|
||||||
- name: Calculate cache hash
|
|
||||||
uses: https://gitea.com/actions/go-hashfiles@v0.0.1
|
|
||||||
id: hash-go
|
|
||||||
with:
|
|
||||||
patterns: |
|
|
||||||
.pre-commit-config.yaml
|
|
||||||
- name: Setup cache
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: ~/.cache/pre-commit
|
|
||||||
key: pre-commit-3|${{ steps.hash-go.outputs.hash }}
|
|
||||||
|
|
||||||
- name: Install pre-commit
|
|
||||||
run: python -m pip install pre-commit
|
|
||||||
shell: bash
|
|
||||||
|
|
||||||
- name: Setup Rust
|
|
||||||
uses: actions-rust-lang/setup-rust-toolchain@v1
|
|
||||||
with:
|
|
||||||
rustflags: ""
|
|
||||||
|
|
||||||
- name: Set rustup default
|
|
||||||
run: rustup default stable
|
|
||||||
shell: bash
|
|
||||||
|
|
||||||
- name: Run pre-commit
|
|
||||||
run: pre-commit run --show-diff-on-failure --color=always --all-files
|
|
||||||
shell: bash
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
name: Build automation_rs
|
name: Build automation_rs
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -56,6 +15,19 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: "3.10"
|
||||||
|
|
||||||
|
- name: "DEBUG"
|
||||||
|
run: |
|
||||||
|
sleep 10
|
||||||
|
echo "Hello"
|
||||||
|
echo "pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}"
|
||||||
|
echo "Hello?"
|
||||||
|
|
||||||
|
- uses: pre-commit/action@v3.0.1
|
||||||
|
|
||||||
- name: Setup Rust
|
- name: Setup Rust
|
||||||
uses: actions-rust-lang/setup-rust-toolchain@v1
|
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
with:
|
with:
|
||||||
|
@ -73,7 +45,7 @@ jobs:
|
||||||
container:
|
container:
|
||||||
name: Build Docker image
|
name: Build Docker image
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [build, checks]
|
needs: [build]
|
||||||
container: catthehacker/ubuntu:act-latest
|
container: catthehacker/ubuntu:act-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
|
Loading…
Reference in New Issue
Block a user