Merge pull request #28 from encryption4all/dependabot/cargo/aes-gcm-0… #186
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
name: Continuous integration | |
jobs: | |
test: | |
name: Test workspace | |
strategy: | |
matrix: | |
workspace: [core, pkg, cli] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
- if: ${{ matrix.workspace == 'core' }} | |
run: cargo test --manifest-path pg-${{ matrix.workspace }}/Cargo.toml --features test,rust,stream | |
- if: ${{ matrix.workspace != 'core' }} | |
run: cargo test --manifest-path pg-${{ matrix.workspace }}/Cargo.toml --all-features | |
format: | |
name: Format workspace | |
strategy: | |
matrix: | |
workspace: [core, pkg, cli] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
- run: cargo fmt --manifest-path pg-${{ matrix.workspace }}/Cargo.toml --all -- --check | |
test-wasm-browsers: | |
name: Run wasm tests in browsers | |
strategy: | |
matrix: | |
browser: [chrome, firefox] | |
os: [ubuntu-latest] | |
include: | |
- browser: safari | |
os: macos-latest | |
runs-on: ${{ matrix.os }} | |
env: | |
WASM_BINDGEN_TEST_TIMEOUT: 120 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install | |
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | |
- if: ${{ matrix.browser == 'firefox' }} | |
run: sudo apt update && sudo apt install firefox | |
- run: wasm-pack test --release --headless --${{ matrix.browser }} ./pg-wasm |