Skip to content

Commit

Permalink
feat: test workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorfdl committed Jun 17, 2024
1 parent b5a1729 commit d939aaa
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-dockerhub.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deplot to DockerHub
name: Deploy to DockerHub

on:
workflow_dispatch:
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/build-macos-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Build for mac-x64

on: workflow_dispatch

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: macos-11
Expand All @@ -17,10 +20,17 @@ jobs:
rustup component add --toolchain stable rustfmt
rustup default stable
- name: Create .env file
run: |
echo "SERVER_SSL_CA=${{ secrets.SERVER_SSL_CA }}" >> .env
echo "SERVER_SSL_CERT=${{ secrets.SERVER_SSL_CERT }}" >> .env
echo "SERVER_SSL_KEY=${{ secrets.SERVER_SSL_KEY }}" >> .env
# Build the modules
- name: Build
run: cargo build --verbose --release

# Run tests
- name: Run tests
run: cargo test --verbose

Expand Down Expand Up @@ -62,4 +72,4 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: tago-relay-macos-x64
path: ../tago-relay-mac-x64.tar.gz
path: target/tago-relay-mac-x64.tar.gz
2 changes: 1 addition & 1 deletion .github/workflows/build-win-x64.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Build for win-x64

on: workflow_dispatch

jobs:
build:
runs-on: ubuntu-latest
environment: PROD

steps:
# Checkout the code
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ env:
jobs:
build:
runs-on: ubuntu-latest
environment: PROD
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down

0 comments on commit d939aaa

Please sign in to comment.