diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 89baeb4..39ad752 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,56 +17,21 @@ jobs: name: Check runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@v2 - - uses: actions-rs/cargo@v1 - with: - command: check + + - name: Run cargo check + run: cargo check test: name: Test Suite runs-on: ubuntu-latest + needs: check steps: - - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@v2 - - uses: actions-rs/cargo@v1 - with: - command: test - -# fmt: -# name: Rustfmt -# runs-on: ubuntu-latest -# steps: -# - uses: actions/checkout@v2 -# - uses: actions-rs/toolchain@v1 -# with: -# profile: minimal -# - uses: Swatinem/rust-cache@v2 -# - run: rustup component add rustfmt -# - uses: actions-rs/cargo@v1 -# with: -# command: fmt -# args: --all -- --check -# clippy: -# name: Clippy -# runs-on: ubuntu-latest -# steps: -# - uses: actions/checkout@v2 -# - uses: actions-rs/toolchain@v1 -# with: -# profile: minimal -# - uses: Swatinem/rust-cache@v2 -# - run: rustup component add clippy -# - uses: actions-rs/cargo@v1 -# with: -# command: clippy -# args: -- -D warnings + - name: Run cargo test + run: cargo test diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e5e6e8f..6136ed7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,34 +9,16 @@ jobs: name: Release runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - target: wasm32-wasi + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable - name: Set up Node 14 - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: registry-url: 'https://registry.npmjs.org' node-version: 14.x - uses: Swatinem/rust-cache@v2 -# - name: Get yarn cache directory path -# id: yarn-cache-dir-path -# run: echo "::set-output name=dir::$(yarn config get cacheFolder)" - -# - name: Install semantic-release-rust -# run: cargo install --git https://github.com/arlyon/semantic-release-rust.git -# - name: Install dependencies -# run: yarn -# - name: Release -# run: yarn semantic-release -# env: -# GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} -# CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} -# NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Build and publish 'latest' tag if: ${{ github.event.action == 'released' }}