From e511c91014a674f1c44687a7642727ed36a51622 Mon Sep 17 00:00:00 2001 From: BinotaLIU Date: Sat, 16 May 2020 20:29:03 +0800 Subject: [PATCH] add deno fmt --check to github action --- .github/workflows/deno.yml | 29 ++++++++++++++++------------- .github/workflows/greetings.yml | 10 +++++----- 2 files changed, 21 insertions(+), 18 deletions(-) diff --git a/.github/workflows/deno.yml b/.github/workflows/deno.yml index aeae72c3c..31a01f89b 100644 --- a/.github/workflows/deno.yml +++ b/.github/workflows/deno.yml @@ -2,13 +2,13 @@ name: Testing/Linting -# Controls when the action will run. Triggers the workflow on push or pull request +# Controls when the action will run. Triggers the workflow on push or pull request # events but only for the master branch on: push: - branches: [ master ] + branches: [master] pull_request: - branches: [ master ] + branches: [master] # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: @@ -19,14 +19,17 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 - - - name: Setup project - run: cp configs.ts.example configs.ts - - - name: Setup Deno environment - uses: denolib/setup-deno@master + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 - - name: Deno Fetch - run: deno cache mod.ts + - name: Setup project + run: cp configs.ts.example configs.ts + + - name: Setup Deno environment + uses: denolib/setup-deno@master + + - name: Deno Fetch + run: deno cache mod.ts + + - name: Deno Format Check + run: deno fmt --check diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml index 09b29e9c6..d65aeb3b4 100644 --- a/.github/workflows/greetings.yml +++ b/.github/workflows/greetings.yml @@ -6,8 +6,8 @@ jobs: greeting: runs-on: ubuntu-latest steps: - - uses: actions/first-interaction@v1 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - issue-message: 'Thank you for helping contribute to Discordeno. I really do appreciate any and all contributions! Hopefully, together we will be able to make the very best bot Discord API module in the world. Since, this is your very first issue, feel free to look around the repository and then hop on into the Discord server, where you can chat with me directly. https://discord.gg/J4NqJ72' - pr-message: 'Thank you for helping contribute to Discordeno. I really do appreciate any and all contributions! Hopefully, together we will be able to make the very best Discord API module in the world. Since, this is your very first pull request, feel free to look around the repository and then hop on into the Discord server, where you can chat with me directly. https://discord.gg/J4NqJ72' + - uses: actions/first-interaction@v1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + issue-message: "Thank you for helping contribute to Discordeno. I really do appreciate any and all contributions! Hopefully, together we will be able to make the very best bot Discord API module in the world. Since, this is your very first issue, feel free to look around the repository and then hop on into the Discord server, where you can chat with me directly. https://discord.gg/J4NqJ72" + pr-message: "Thank you for helping contribute to Discordeno. I really do appreciate any and all contributions! Hopefully, together we will be able to make the very best Discord API module in the world. Since, this is your very first pull request, feel free to look around the repository and then hop on into the Discord server, where you can chat with me directly. https://discord.gg/J4NqJ72"