update workflows
Rust / test (push) Successful in 1m48s Details

This commit is contained in:
DataHearth 2023-06-23 16:35:02 +02:00
parent f61cd459ed
commit 9b4fd2c6f4
No known key found for this signature in database
GPG Key ID: E88FD356ACC5F3C4
4 changed files with 12 additions and 21 deletions

View File

@ -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

View File

@ -23,5 +23,5 @@ jobs:
toolchain: stable
profile: minimal
- name: Test
- name: Run tests
run: cargo test --verbose

View File

@ -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}}

View File

@ -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