From 96c4fd7208f84311f9eeee9ff612a0f0b06e34a6 Mon Sep 17 00:00:00 2001 From: Eduardo Flores Date: Sat, 7 Sep 2024 03:52:03 -0700 Subject: [PATCH] Create push.yml --- .github/workflows/push.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/push.yml diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml new file mode 100644 index 0000000..3a9ef20 --- /dev/null +++ b/.github/workflows/push.yml @@ -0,0 +1,30 @@ +name: Pull request + +on: + pull_request: + branches: [ "main" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + runs-on: ubuntu-latest + permissions: + checks: write + pull-requests: write + steps: + - name: Install depencencies + run: sudo apt-get install -y libxkbcommon-dev + - uses: actions/checkout@v4 + - name: Build + run: cargo build --verbose + - name: clippy + uses: auguwu/clippy-action@1.4.0 + with: + token: ${{ secrets.GITHUB_TOKEN }} + - name: format + uses: mbrobbel/rustfmt-check@master + with: + token: ${{ secrets.GITHUB_TOKEN }} + mode: review