Skip to content

Commit

Permalink
Update yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Mao Huynh committed Apr 22, 2024
1 parent ddbd92b commit f11a7a9
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,14 @@ on:
pull_request:
branches: [ "master" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
needs: [build_hello, build_variables]
strategy:
matrix:
include:
- name: Hello
job: build_hello
- name: Variables
job: build_variables
22 changes: 22 additions & 0 deletions hello/hello.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Rust - Hello

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

env:
CARGO_TERM_COLOR: always

jobs:
build_hello:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build and test in hello directory
run: |
cd hello
cargo build --verbose
cargo test --verbose
22 changes: 22 additions & 0 deletions variables/variables.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Rust - Variables

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

env:
CARGO_TERM_COLOR: always

jobs:
build_variables:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build and test in variables directory
run: |
cd variables
cargo build --verbose
cargo test --verbose

0 comments on commit f11a7a9

Please sign in to comment.