Skip to content

Commit

Permalink
test cloning services
Browse files Browse the repository at this point in the history
  • Loading branch information
codeitlikemiley committed Dec 16, 2023
1 parent dbc39ee commit 95201b4
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Build Template
on:
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows#workflow_dispatch
workflow_dispatch:
schedule:
- cron: '0 18 * * 5'
Expand All @@ -17,17 +16,28 @@ jobs:
PROJECT_NAME: server-template
steps:
- uses: actions/checkout@v2
with:
path: my_workspace/server

- name: Setup Workspace Directory
run: |
mkdir my_workspace
cd my_workspace
echo '[workspace]' >> Cargo.toml
echo 'resolver = "2"' >> Cargo.toml
echo 'members = ["server", "services/auth"]' >> Cargo.toml
echo '[workspace]' >> my_workspace/Cargo.toml
echo 'resolver = "2"' >> my_workspace/Cargo.toml
echo 'members = ["server", "services/auth"]' >> my_workspace/Cargo.toml
mkdir -p my_workspace/services/auth
- name: Clone Auth Service Repository
run: |
git clone https://github.com/codeitlikemiley/service_template my_workspace/services/auth
- name: Generate Server
uses: cargo-generate/cargo-generate-action@v0.18.5
with:
name: ${{ env.PROJECT_NAME }}
arguments: "--branch main --define server_name=default --define service_name=auth"
arguments: "--branch main --define server_name=default --define service_name=auth"
working-directory: my_workspace

- name: Build Workspace
run: |
cd my_workspace
cargo check --all

0 comments on commit 95201b4

Please sign in to comment.