From cd5ad1321cd1094bd43fbb53223ef717d4341a9c Mon Sep 17 00:00:00 2001 From: Adrien Touzouli Date: Fri, 20 Oct 2023 18:29:04 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20add=20json=20and=20yaml=20lint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/check.yml | 39 ++++++++++++++++++++++++++++++++++ .github/workflows/pr_check.yml | 33 ---------------------------- 2 files changed, 39 insertions(+), 33 deletions(-) create mode 100644 .github/workflows/check.yml delete mode 100644 .github/workflows/pr_check.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..81687e0 --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,39 @@ +name: pr_check + +on: + workflow_dispatch: + push: + pull_request: + branches: [main] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: json-yaml-validate + uses: GrantBirki/json-yaml-validate@v2.3.1 + + - name: install toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + target: wasm32-unknown-unknown + override: true + profile: minimal + + - name: Install trunk + uses: jetli/trunk-action@v0.4.0 + with: + version: "latest" + + - name: Build + run: trunk build + + - name: Run tests + run: cargo test --verbose diff --git a/.github/workflows/pr_check.yml b/.github/workflows/pr_check.yml deleted file mode 100644 index 70ceb1c..0000000 --- a/.github/workflows/pr_check.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: pr_check - -on: - workflow_dispatch: - push: - pull_request: - branches: [ main ] - -env: - CARGO_TERM_COLOR: always - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: install toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - target: wasm32-unknown-unknown - override: true - profile: minimal - - name: Install trunk - uses: jetli/trunk-action@v0.4.0 - with: - version: 'latest' - - name: Build - run: trunk build - - name: Run tests - run: cargo test --verbose