-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from sraesch/feature/github-improve-workflow
Improved GitHub workflows
- Loading branch information
Showing
11 changed files
with
165 additions
and
103 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: "ReactTest" | ||
|
||
on: | ||
pull_request: | ||
|
||
env: | ||
working-directory: "./movies-db-ui" | ||
|
||
jobs: | ||
build: | ||
name: "Build React" | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: "Check out the repo" | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: "12.x" | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
working-directory: ${{ env.working-directory }} | ||
|
||
# Deactivate tests for now as there seems to be an issue with jest and css-tools | ||
# - name: Run the tests | ||
# run: npm test | ||
# working-directory: ${{ env.working-directory }} | ||
|
||
- name: Build React App | ||
run: npm run build | ||
working-directory: ${{ env.working-directory }} | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
name: "RustTest" | ||
|
||
on: | ||
pull_request: | ||
|
||
env: | ||
working-directory: "./movies-db-service" | ||
|
||
jobs: | ||
check: | ||
name: "Cargo check" | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- name: "Check out the repo" | ||
uses: actions/checkout@v3 | ||
|
||
- uses: "actions-rs/toolchain@v1" | ||
with: | ||
profile: "minimal" | ||
toolchain: "stable" | ||
override: true | ||
|
||
- uses: "actions-rs/cargo@v1" | ||
with: | ||
command: "check" | ||
args: "--manifest-path movies-db-service/Cargo.toml" | ||
|
||
test: | ||
name: "Cargo test" | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- name: "Check out the repo" | ||
uses: actions/checkout@v3 | ||
|
||
- uses: "actions-rs/toolchain@v1" | ||
with: | ||
profile: "minimal" | ||
toolchain: "stable" | ||
override: true | ||
|
||
- uses: "actions-rs/cargo@v1" | ||
with: | ||
command: "test" | ||
args: "--manifest-path movies-db-service/Cargo.toml" | ||
|
||
fmt: | ||
name: "Cargo format" | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- name: "Check out the repo" | ||
uses: actions/checkout@v3 | ||
|
||
- uses: "actions-rs/toolchain@v1" | ||
with: | ||
profile: "minimal" | ||
toolchain: "stable" | ||
override: true | ||
|
||
- run: "rustup component add rustfmt" | ||
|
||
- uses: "actions-rs/cargo@v1" | ||
with: | ||
command: "fmt" | ||
args: "--all --manifest-path movies-db-service/Cargo.toml -- --check" | ||
|
||
clippy: | ||
name: "Cargo clippy" | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- name: "Check out the repo" | ||
uses: actions/checkout@v3 | ||
|
||
- uses: "actions-rs/toolchain@v1" | ||
with: | ||
profile: "minimal" | ||
toolchain: "stable" | ||
override: true | ||
|
||
- run: "rustup component add clippy" | ||
|
||
- uses: "actions-rs/cargo@v1" | ||
with: | ||
command: "clippy" | ||
args: "--manifest-path movies-db-service/Cargo.toml -- -D warnings" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
mod service; | ||
mod service_handler; | ||
mod service_impl; | ||
|
||
pub use service::*; | ||
pub use service_impl::*; |
Oops, something went wrong.