diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 00000000..a74ae2c7
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,31 @@
+name: Rust
+
+on:
+  push:
+  pull_request:
+
+env:
+  CARGO_TERM_COLOR: always
+
+jobs:
+  test:
+    name: test
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+      - name: Configure toolchain
+        uses: actions-rs/toolchain@v1
+        with:
+          toolchain: stable
+          override: true
+      - name: Configure caching
+        uses: actions/cache@v2
+        with:
+          key: ubuntu-latest-stable-testing
+          path: |
+            ${{ env.HOME }}/.cargo
+            target
+      - name: test
+        uses: actions-rs/cargo@v1
+        with:
+          command: test
diff --git a/src/lib.rs b/src/lib.rs
index d83d7887..0ad83f42 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -168,7 +168,7 @@ mod test {
             &[Product {
                 name: Some("cargo-binstall".to_string()),
                 path: Some("src/main.rs".to_string()),
-                edition: Some(cargo_toml::Edition::E2018),
+                edition: Some(cargo_toml::Edition::E2021),
                 ..Default::default()
             },],
         );