aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/main.yml
blob: 094a15e77088140d2fc2841a209a77a49b8c1d82 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: main
on:
  - pull_request
  - push
jobs:
  beta:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions-rs/toolchain@v1
        with:
          toolchain: beta
          components: rustfmt, clippy
      - run: cargo clippy -- -W clippy::pedantic
      - run: cargo fmt --all -- --check
      - run: cargo test
      # - run: cargo install cargo-tarpaulin && cargo tarpaulin --out Xml
      # - uses: codecov/codecov-action@v1
  stable:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions-rs/toolchain@v1
        with:
          toolchain: stable
          components: rustfmt, clippy
      - run: cargo clippy -- -W clippy::pedantic
      - run: cargo fmt --all -- --check
      - run: cargo test
      # - run: cargo install cargo-tarpaulin && cargo tarpaulin --out Xml
      # - uses: codecov/codecov-action@v1
      - run: cargo doc --document-private-items
      - name: Deploy
        uses: JamesIves/github-pages-deploy-action@v4.3.3
        with:
          branch: gh-pages
          folder: target/doc/micromark
          single-commit: true
          commit-message: .
          git-config-name: Titus Wormer
          git-config-email: tituswormer@gmail.com