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 - uses: actions/checkout@v3
- name: Setup Docker buildx - 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 Docker
uses: docker/login-action@v2 uses: docker/login-action@v2

View File

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

View File

@ -11,28 +11,20 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Setup Docker buildx - 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 uses: docker/login-action@v2
with: with:
username: ${{ secrets.DOCKER_USERNAME }} registry: ghcr.io
password: ${{ secrets.DOCKER_TOKEN }}
- name: Log into registry Gitea
uses: docker/login-action@v2
with:
registry: gitea.antoine-langlois.net
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }} password: ${{ secrets.GH_TOKEN }}
- name: Extract Docker metadata - name: Extract Docker metadata
id: meta id: meta
uses: docker/metadata-action@v4 uses: docker/metadata-action@v4
with: with:
images: | images: ${{ github.repository_owner }}/${{ github.repository }}
datahearth/tech-bot
gitea.antoine-langlois.net/datahearth/tech-bot
tags: | tags: |
type=semver,pattern={{version}} type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}}.{{minor}}

View File

@ -2,21 +2,20 @@ name: Rust
on: on:
push: push:
branches: ["main"] branches:
- "main"
pull_request: pull_request:
branches: ["main"] branches:
- "main"
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
jobs: jobs:
test-build: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests - name: Run tests
run: cargo test --verbose run: cargo test --verbose