build(elixir): pin mix deps using == and use ubuntu-22.04 for CI #125
Workflow file for this run
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
name: Build JavaScript | |
on: | |
pull_request: | |
branches: | |
- main | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: | |
- stable | |
wasm-pack: | |
- "0.12.1" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.rust }} | |
override: true | |
- name: Restore dependencies cache | |
uses: Swatinem/rust-cache@v1 | |
- name: Install wasm-pack | |
uses: actions-rs/cargo@v1 | |
with: | |
command: install | |
args: --version ${{ matrix.wasm-pack }} wasm-pack | |
- name: Test | |
run: wasm-pack test --node --firefox --chrome --headless js |