From 6b5529270bed31e7f2d530a85c576daf707cafe0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= <joamag@gmail.com> Date: Sun, 4 Dec 2022 13:17:48 +0000 Subject: [PATCH] feat: initial rust build on github actions --- .github/workflows/main.yml | 21 +++++++++++++++++++++ frontends/web/.eslintrc.js | 7 ++++++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..0f713d8c --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,21 @@ +name: Main Workflow +on: + push: + schedule: + - cron: "0 0 * * 0" +jobs: + build: + name: Build + timeout-minutes: 10 + strategy: + matrix: + rust-version: ["1.56.1", "1.60.0", "1.65.0", "latest"] + runs-on: ubuntu-latest + container: rust:${{ matrix.rust-version }} + steps: + - uses: actions/checkout@v1 + - run: rustc --version + - run: cargo fmt --check + - run: cargo clippy + - run: cargo build + - run: cargo build --release diff --git a/frontends/web/.eslintrc.js b/frontends/web/.eslintrc.js index 8f3b6d59..f3044bf1 100644 --- a/frontends/web/.eslintrc.js +++ b/frontends/web/.eslintrc.js @@ -4,7 +4,12 @@ module.exports = { parser: "@typescript-eslint/parser", plugins: ["@typescript-eslint"], rules: { - "no-constant-condition": ["error", { checkLoops: false }], + "no-constant-condition": [ + "error", + { + checkLoops: false + } + ], "no-empty-function": "off", semi: ["error", "always"] }, -- GitLab