Skip to content

Commit

Permalink
Merge pull request #361 from ramsayleung/ramsay_fix_failed_example
Browse files Browse the repository at this point in the history
Update webapp example
  • Loading branch information
marioortizmanero authored Dec 27, 2022
2 parents 694c0b4 + e9f5f8c commit 48b74b4
Show file tree
Hide file tree
Showing 4 changed files with 241 additions and 90 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/webapp_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
on:
pull_request:
push:
branches: master

name: WebApp Continuous Integration

jobs:
building:
name: Building
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt

- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --manifest-path examples/webapp/Cargo.toml -- --check

- name: Run cargo build
uses: actions-rs/cargo@v1
with:
command: build
args: --manifest-path examples/webapp/Cargo.toml

- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --manifest-path examples/webapp/Cargo.toml -- -D warnings
7 changes: 5 additions & 2 deletions examples/webapp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ authors = [
edition = "2018"

[dependencies]
rocket = "0.4.10"
rocket_contrib = { version = "0.4.10", features = ["tera_templates"] }
rocket = { version = "0.5.0-rc.2", features = ["json"] }
rocket_dyn_templates = { version = "0.1.0-rc.2", features = ["tera"] }
getrandom = "0.2.6"
# Rocket is synchronous, so this uses the `ureq` client
rspotify = { path = "../..", features = ["client-ureq", "ureq-rustls-tls"], default-features = false }
env_logger = { version = "0.9.0", default-features = false }
log = "0.4.0"
cookie = "0.16"
Loading

0 comments on commit 48b74b4

Please sign in to comment.