update workflows
Rust / test (push) Successful in 1m48s
Details
Rust / test (push) Successful in 1m48s
Details
This commit is contained in:
parent
f61cd459ed
commit
9b4fd2c6f4
|
@ -11,7 +11,7 @@ jobs:
|
|||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Docker buildx
|
||||
uses: docker/setup-buildx-action@v4
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Log into registry Docker
|
||||
uses: docker/login-action@v2
|
|
@ -23,5 +23,5 @@ jobs:
|
|||
toolchain: stable
|
||||
profile: minimal
|
||||
|
||||
- name: Test
|
||||
- name: Run tests
|
||||
run: cargo test --verbose
|
|
@ -11,28 +11,20 @@ jobs:
|
|||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Docker buildx
|
||||
uses: docker/setup-buildx-action@v4
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Log into registry Docker
|
||||
- name: Log into registry GitHub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_TOKEN }}
|
||||
|
||||
- name: Log into registry Gitea
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: gitea.antoine-langlois.net
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
password: ${{ secrets.GH_TOKEN }}
|
||||
|
||||
- name: Extract Docker metadata
|
||||
id: meta
|
||||
uses: docker/metadata-action@v4
|
||||
with:
|
||||
images: |
|
||||
datahearth/tech-bot
|
||||
gitea.antoine-langlois.net/datahearth/tech-bot
|
||||
images: ${{ github.repository_owner }}/${{ github.repository }}
|
||||
tags: |
|
||||
type=semver,pattern={{version}}
|
||||
type=semver,pattern={{major}}.{{minor}}
|
|
@ -2,21 +2,20 @@ name: Rust
|
|||
|
||||
on:
|
||||
push:
|
||||
branches: ["main"]
|
||||
branches:
|
||||
- "main"
|
||||
pull_request:
|
||||
branches: ["main"]
|
||||
branches:
|
||||
- "main"
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
test-build:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Build
|
||||
run: cargo build --verbose
|
||||
|
||||
- name: Run tests
|
||||
run: cargo test --verbose
|
Loading…
Reference in New Issue