Skip to content

Commit a4983cc

Browse files
committed
ci: update ubuntu and use recent minimal nightly
1 parent 6adba59 commit a4983cc

File tree

2 files changed

+37
-37
lines changed

2 files changed

+37
-37
lines changed

.actrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# When using act to run github actions locally it must use a full image to be able to compile correctly
2-
-P ubuntu-18.04=nektos/act-environments-ubuntu:18.04
2+
-P ubuntu-20.04=nektos/act-environments-ubuntu:18.04

.github/workflows/test-code.yml

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -3,46 +3,46 @@ name: Test Code
33
on:
44
pull_request:
55
branches:
6-
- main
6+
- main
77
push:
88
branches:
9-
- main
9+
- main
1010

1111
jobs:
1212
test-code:
13-
runs-on: ubuntu-18.04
13+
runs-on: ubuntu-20.04
1414

1515
steps:
16-
- name: Checkout Code
17-
uses: actions/checkout@v2
18-
19-
- name: Cache cargo registry
20-
uses: actions/cache@v2
21-
with:
22-
path: |
23-
~/.cargo/registry
24-
~/.cargo/git
25-
target
26-
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
27-
28-
- name: Install toolchain
29-
uses: actions-rs/toolchain@v1
30-
with:
31-
profile: minimal
32-
toolchain: nightly-2021-01-26
33-
components: rustfmt, clippy
34-
target: wasm32-unknown-unknown
35-
override: true
36-
default: true
37-
38-
- name: Check Code Formatting
39-
run: cargo fmt -- --check
40-
41-
- name: Lint Code
42-
uses: actions-rs/clippy-check@v1
43-
with:
44-
token: ${{ secrets.GITHUB_TOKEN }}
45-
args: --all-targets
46-
47-
- name: Test Code
48-
run: cargo test --all
16+
- name: Checkout Code
17+
uses: actions/checkout@v2
18+
19+
- name: Cache cargo registry
20+
uses: actions/cache@v2
21+
with:
22+
path: |
23+
~/.cargo/registry
24+
~/.cargo/git
25+
target
26+
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
27+
28+
- name: Install toolchain
29+
uses: actions-rs/toolchain@v1
30+
with:
31+
profile: minimal
32+
toolchain: nightly-2021-04-18
33+
components: rustfmt, clippy
34+
target: wasm32-unknown-unknown
35+
override: true
36+
default: true
37+
38+
- name: Check Code Formatting
39+
run: cargo fmt -- --check
40+
41+
- name: Lint Code
42+
uses: actions-rs/clippy-check@v1
43+
with:
44+
token: ${{ secrets.GITHUB_TOKEN }}
45+
args: --all-targets
46+
47+
- name: Test Code
48+
run: cargo test --all

0 commit comments

Comments
 (0)