diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-04-12 20:36:55 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-04-12 20:36:55 +1000 |
commit | f81e92a159705c868c59ed823352ff6e15087580 (patch) | |
tree | ef64e1370f1e9dd14d8127d11d608caca4ef6e7f | |
parent | fix crowdin badge (diff) | |
download | server-f81e92a159705c868c59ed823352ff6e15087580.tar.xz |
Move prettier and eslint into separate workflow
-rw-r--r-- | .github/workflows/build.yml | 2 | ||||
-rw-r--r-- | .github/workflows/style.yml | 27 |
2 files changed, 27 insertions, 2 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5b27fddf..e3bcc81f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,7 +24,5 @@ jobs: node-version: ${{ matrix.node-version }} cache: 'npm' - run: npm ci - - run: npx eslint . - - run: npx prettier --check . - run: npm run build --if-present - run: npm run test --if-present \ No newline at end of file diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml new file mode 100644 index 00000000..931449b7 --- /dev/null +++ b/.github/workflows/style.yml @@ -0,0 +1,27 @@ +name: Style + +on: + push: + branches: [ "**" ] + pull_request: + branches: [ "**" ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [18.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npx eslint . + - run: npx prettier --check . \ No newline at end of file |