Update actions.yaml
This commit is contained in:
1 parent
6efaea0d4b
commit
411f5a4953
1 file changed
+40
@@ -30,3 +30,43 @@ jobs:
|
|||||||
# Step 3: Run the test suite
|
# Step 3: Run the test suite
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
run: swift test -v
|
run: swift test -v
|
||||||
|
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: artifacts
|
||||||
|
path: |
|
||||||
|
./.build/x86_64-unknown-linux-gnu/debug/auth_service
|
||||||
|
|
||||||
|
build_and_test_release:
|
||||||
|
# Use the default Linux label provided by your act_runner
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
# Force the job to run inside an official Swift Docker container
|
||||||
|
container:
|
||||||
|
image: swift:6.3.2
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Install Node.js
|
||||||
|
run: |
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y curl ca-certificates
|
||||||
|
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
|
||||||
|
apt-get install -y nodejs
|
||||||
|
|
||||||
|
# Step 1: Check out the source code
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
# Step 2: Build the package or project
|
||||||
|
- name: Build Swift Project
|
||||||
|
run: swift build -v -c release
|
||||||
|
|
||||||
|
# Step 3: Run the test suite
|
||||||
|
- name: Run Tests
|
||||||
|
run: swift test -v -c release
|
||||||
|
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: artifacts
|
||||||
|
path: |
|
||||||
|
./.build/x86_64-unknown-linux-gnu/release/auth_service
|
||||||
Reference in new issue
Block a user