index : static-web-server.git

ascending towards madness

author Jose Quintana <joseluisquintana20@gmail.com> 2021-01-13 14:13:39.0 +00:00:00
committer Jose Quintana <joseluisquintana20@gmail.com> 2021-01-13 14:13:39.0 +00:00:00
commit
7265f6b93fbd5bd41b615e189d7b3b099f0414f4 [patch]
tree
cacf3e93c4259999c73244e90dde5dd82acb9ec7
parent
b4498c6754b76d1c18fb370e32eea82a94f20dd3
download
7265f6b93fbd5bd41b615e189d7b3b099f0414f4.tar.gz

feat: github actions ci



Diff

 .github/workflows/ci.yml | 69 +++++++++++++++++++++++++++++++++++++++++++++++++-
 README.md                |  2 +-
 2 files changed, 70 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..3952445
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,69 @@
name: CI

on: [push, pull_request]

jobs:
  check:
    name: Check
    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

      - name: Run cargo check
        uses: actions-rs/cargo@v1
        with:
          command: check

  test:
    name: Test Suite
    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

      - name: Run cargo test
        uses: actions-rs/cargo@v1
        with:
          command: test

  lints:
    name: Lints
    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, clippy

      - name: Run cargo fmt
        uses: actions-rs/cargo@v1
        with:
          command: fmt
          args: --all -- --check

      - name: Run cargo clippy
        uses: actions-rs/clippy-check@v1
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          args: --all-features -- -D warnings
diff --git a/README.md b/README.md
index 11b2a71..a1aac28 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
# Static Web Server [![Docker Image Version (tag latest semver)]https://img.shields.io/docker/v/joseluisq/static-web-server/1]https://hub.docker.com/r/joseluisq/static-web-server/ [![Build Status]https://travis-ci.com/joseluisq/static-web-server.svg?branch=master]https://travis-ci.com/joseluisq/static-web-server [![Docker Image Size (tag)]https://img.shields.io/docker/image-size/joseluisq/static-web-server/1]https://hub.docker.com/r/joseluisq/static-web-server/tags [![Docker Image]https://img.shields.io/docker/pulls/joseluisq/static-web-server.svg]https://hub.docker.com/r/joseluisq/static-web-server/
# Static Web Server [![Docker Image Version (tag latest semver)]https://img.shields.io/docker/v/joseluisq/static-web-server/1]https://hub.docker.com/r/joseluisq/static-web-server/ ![CI]https://github.com/joseluisq/static-web-server/workflows/CI/badge.svg [![Docker Image Size (tag)]https://img.shields.io/docker/image-size/joseluisq/static-web-server/1]https://hub.docker.com/r/joseluisq/static-web-server/tags [![Docker Image]https://img.shields.io/docker/pulls/joseluisq/static-web-server.svg]https://hub.docker.com/r/joseluisq/static-web-server/

**STATUS:** This is the WIP v2 release under **active** development.
For stable release v1 and contributions please refer to branch [1.x]https://github.com/joseluisq/static-web-server/tree/1.x.