aboutsummaryrefslogblamecommitdiffstats
path: root/.github/workflows/main.yml
blob: 9d45ca42a3456dbdad2f86990645942496ca4f3f (plain) (tree)
1
2
3
4
5
6
7
8
9




                


                          
                                 



                                     
                                                                                                                                       



                                                                         
                                          
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                    
                                                     

                          
                            



                                                 
name: main
on:
  - pull_request
  - push
jobs:
  stable:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: actions-rs/toolchain@v1
        with:
          toolchain: stable
          components: rustfmt, clippy
      - run: cargo clippy --examples --tests --benches -- -D clippy::pedantic -A clippy::doc_link_with_quotes -A clippy::too_many_lines
      - 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 --no-deps --release
      - run: echo '<!doctypehtml><html lang=en><meta charset=utf8><title>Redirecting…</title><link rel=canonical href=https://wooorm.com/micromark-rs/micromark><script>location = "https://wooorm.com/micromark-rs/micromark"</script><meta http-equiv=refresh content=0;url=https://wooorm.com/micromark-rs/micromark><meta name=robots content=noindex><body><h1>Redirecting…</h1><p><a href=https://wooorm.com/micromark-rs/micromark>Click here if you are not redirected.</a>' > target/doc/index.html
      - name: Deploy
        uses: JamesIves/github-pages-deploy-action@v4
        with:
          branch: gh-pages
          folder: target/doc
          single-commit: true
          commit-message: .
          git-config-name: Titus Wormer
          git-config-email: tituswormer@gmail.com