From 64c406e3dca9035ecb1450e7b1a49d977bba5a5c Mon Sep 17 00:00:00 2001 From: Jacob Wallraff Date: Mon, 30 Jan 2023 11:24:13 -0800 Subject: [PATCH] Remove refactor and add format as a step --- .github/workflows/buildtest.yml | 33 ++++++++++----------------------- 1 file changed, 10 insertions(+), 23 deletions(-) diff --git a/.github/workflows/buildtest.yml b/.github/workflows/buildtest.yml index a0c01b3..3174539 100644 --- a/.github/workflows/buildtest.yml +++ b/.github/workflows/buildtest.yml @@ -7,33 +7,20 @@ on: branches: [ "main" ] jobs: - prepare-npm: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Use Node.js 16.15 - uses: actions/setup-node@v3 - with: - node-version: 16.15 - cache: 'npm' - registry-url: 'https://npm.pkg.github.com' build: runs-on: ubuntu-latest - needs: prepare-npm + steps: + - uses: actions/checkout@v3 + - name: Use Node.js 16.x + uses: actions/setup-node@v3 + with: + node-version: 16.x + cache: 'npm' + registry-url: 'https://npm.pkg.github.com' - run: npm ci env: NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: npm run build -ws - test: - runs-on: ubuntu-latest - needs: prepare-npm - steps: - - run: npm test -ws - format: - runs-on: ubuntu-latest - needs: prepare-npm - steps: - - run: npm run format-check -ws - - + - run: npm test -ws + - run: npm run format-check -ws