fut_rwlock 0.1.0

A read-write lock that is read and written via Futures.
Documentation
name: Rust

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

env:
  CARGO_TERM_COLOR: always

jobs:
  buildandtest:
    name: Build on ${{ matrix.os }}
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ubuntu-latest, macOS-latest, windows-latest]

    steps:
      - uses: actions/checkout@v2
      - name: Build
        run: cargo build --verbose
      - name: Run default tests
        run: cargo test --verbose
      - name: Install wasm-pack
        run: |
          curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
          wasm-pack --version
      - name: Run headless browser tests
        run: |
          wasm-pack test --headless --chrome
          wasm-pack test --headless --firefox

  buildreadme:
    name: Build readme
    runs-on: ubuntu-latest
    needs: buildandtest

    steps:
      - uses: actions/checkout@v2
      - name: Install cargo-readme
        run: cargo install cargo-readme
      - name: Create README.md file from src/lib.rs
        run: cargo readme -i src/lib.rs -o README.md
      - uses: EndBug/add-and-commit@v7 # You can change this to use a specific version
        with:
          # The arguments for the `git add` command (see the paragraph below for more info)
          # Default: '.'
          add: 'README.md'
          # Name of the branch to use, if different from the one that triggered the workflow
          # Default: the branch that triggered the run
          branch: main
          # Determines the way the action fills missing author name and email. Three options are available:
          # - github_actor -> UserName <UserName@users.noreply.github.com>
          # - user_info -> Your Display Name <your-actual@email.com>
          # - github_actions -> github-actions <email associated with the github logo>
          # Default: github_actor
          default_author: github_actor
         # The message for the commit
          # Default: 'Commit from GitHub Actions (name of the workflow)'
          message: 'Updated README.md'
          # The flag used on the pull strategy. Use NO-PULL to avoid the action pulling at all.
          # Default: '--no-rebase'
          pull_strategy: NO-PULL