Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .actrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# When using act to run github actions locally it must use a full image to be able to compile correctly
-P ubuntu-18.04=nektos/act-environments-ubuntu:18.04
-P ubuntu-20.04=nektos/act-environments-ubuntu:20.04
72 changes: 36 additions & 36 deletions .github/workflows/test-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,46 +3,46 @@ name: Test Code
on:
pull_request:
branches:
- main
- main
push:
branches:
- main
- main

jobs:
test-code:
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04

steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Cache cargo registry
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}

- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2021-01-26
components: rustfmt, clippy
target: wasm32-unknown-unknown
override: true
default: true

- name: Check Code Formatting
run: cargo fmt -- --check

- name: Lint Code
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-targets

- name: Test Code
run: cargo test --all
- name: Checkout Code
uses: actions/checkout@v2

- name: Cache cargo registry
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}

- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2021-04-18
components: rustfmt, clippy
target: wasm32-unknown-unknown
override: true
default: true

- name: Check Code Formatting
run: cargo fmt -- --check

- name: Lint Code
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-targets

- name: Test Code
run: cargo test --all
Loading