Compare commits

...

13 Commits

Author SHA1 Message Date
aa5dc1b24d
build: gitea actions
All checks were successful
Integration test for new action version / it (push) Successful in 38s
2024-03-01 00:05:34 +01:00
fb97f44e61
feat: upgrade rust to nightly 2024-02-29 21:45:23 +01:00
b04192bc18 feat: use 1.78.81a775c image 2024-02-29 20:13:15 +00:00
780e19d7a2
feat: use public rust image 2023-12-09 11:48:29 +01:00
8fd17ffcc7
feat: customized image 2023-12-02 22:20:15 +01:00
0ba7f6c216 bump: rust to 1.74.0 2023-11-30 16:34:17 +01:00
Mirlahiji
1281743e27 bump: rust to 1.73.0 2023-10-05 23:42:12 +03:30
Mirlahiji
fb098cfd7f bump: rust to 1.72.0 2023-08-28 18:40:30 +03:30
Mirlahiji
21f8a97962 bump: rust to 1.71.1 2023-08-10 19:43:43 +03:30
Delaram Mirlahiji
82fd915a7b
Merge pull request #2 from felix-seifert/integration-tests-pre-release
ci: run integration tests with code changes before releasing new action
2023-07-17 10:27:26 +03:30
Delaram Mirlahiji
8110225bb8
Merge pull request #1 from felix-seifert/bump-version-1.71.0
bump:rust to 1.71.0
2023-07-17 10:24:14 +03:30
Felix Seifert
2811f8f89b ci: run integration tests with code changes before releasing new action
This GH Action workflow runs integration tests on `push` and `pull_request` with the latest
code of this `rust-action`. It does require neither a release nor a push to master to test
the latest changes in this action. This workflow can be used as required test for a branch
protection rule.
2023-07-16 23:20:50 +02:00
Felix Seifert
a00ac02f25 bump:rust to 1.71.0 2023-07-16 22:21:43 +02:00
4 changed files with 67 additions and 20 deletions

View File

@ -0,0 +1,18 @@
name: Integration test for new action version
on:
push:
branches: [ "master" ]
pull_request:
types: [opened, reopened, synchronize]
jobs:
it:
runs-on: ubuntu-latest
container:
image: ovlach/docker-gitea:v0.0.2-alpha
steps:
- uses: https://github.com/actions/checkout.git@v4
- name: Verify that Docker image can be built
run: |
docker build .

23
.github/workflows/integration-test.yml vendored Normal file
View File

@ -0,0 +1,23 @@
name: Integration test for new action version
on:
push:
branches: [ "master" ]
pull_request:
types: [opened, reopened, synchronize]
jobs:
it:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Verify that Docker image can be built
run: |
docker build .
- name: Run tests of subdir `integration-test`
uses: ./
with:
args: |
cargo fmt --manifest-path integration-test/Cargo.toml -- --check \
&& cargo clippy --manifest-path integration-test/Cargo.toml -- -Dwarnings \
&& cargo test --manifest-path integration-test/Cargo.toml

View File

@ -1,18 +1,24 @@
FROM rust:1.70.0 FROM git.nanobyte.cz/nanobyte-public/nano-rust:1.78.81a775c
LABEL "com.github.actions.name"="Rust Action Box" LABEL "com.github.actions.name"="Rust Action Box"
LABEL "com.github.actions.description"="'Silverbullet' for a quickstart Rust CI based upon Github Actions" LABEL "com.github.actions.description"="'Silverbullet' for a quickstart Rust CI based upon Github Actions"
LABEL "com.github.actions.icon"="play-circle" LABEL "com.github.actions.icon"="play-circle"
LABEL "com.github.actions.color"="gray-dark" LABEL "com.github.actions.color"="gray-dark"
RUN rustup component add clippy-preview RUN rustup show
RUN rustup component add rustfmt-preview RUN rustup uninstall nightly
RUN rustup install nightly
RUN cargo install cargo-release RUN rustup show
RUN rustup component add clippy-preview
RUN apt-get update && apt-get install -y \ RUN rustup component add rustfmt-preview
cmake \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y \
COPY entrypoint.sh /entrypoint.sh cmake \
ENTRYPOINT ["/entrypoint.sh"] && rm -rf /var/lib/apt/lists/*
RUN cargo --version
RUN rustc --version
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -2,11 +2,11 @@
'Silverbullet' for a quickstart Rust CI based upon [Github Actions](https://developer.github.com/actions/) 'Silverbullet' for a quickstart Rust CI based upon [Github Actions](https://developer.github.com/actions/)
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-%23FE5196?logo=conventionalcommits&logoColor=white)](https://conventionalcommits.org) [![](https://img.shields.io/badge/Rust-1.70.0-orange)](https://blog.rust-lang.org/2023/06/01/Rust-1.70.0.html) [![img](https://img.shields.io/badge/Rust-1.73.0-orange)](https://blog.rust-lang.org/2023/10/05/Rust-1.73.0.html)
*What's inside the "box":* *What's inside the "box":*
* Rust 1.70.0 * Rust 1.73.0
* Rustfmt * Rustfmt
* Clippy * Clippy
* Cargo Release * Cargo Release