From 7e9d69bdae6c415e54a303f08736644c589fe327 Mon Sep 17 00:00:00 2001 From: Gemk83 <86937198+Gemk83@users.noreply.github.com> Date: Wed, 3 Jan 2024 21:52:03 -0800 Subject: [PATCH] Create build-lint-test.yml --- .github/workflows/build-lint-test.yml | 32 +++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/build-lint-test.yml diff --git a/.github/workflows/build-lint-test.yml b/.github/workflows/build-lint-test.yml new file mode 100644 index 0000000000000..b4d113ef6b395 --- /dev/null +++ b/.github/workflows/build-lint-test.yml @@ -0,0 +1,32 @@ +name: Build, Lint, and Test + +on: + push: + branches: [main] + pull_request: + +jobs: + build-lint-test: + name: Build, Lint, and Test + runs-on: ubuntu-20.04 + strategy: + matrix: + node-version: [12.x, 14.x, 16.x] + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: yarn --frozen-lockfile --ignore-scripts + - run: yarn build + - run: yarn lint + - run: yarn test + all-jobs-pass: + name: All jobs pass + runs-on: ubuntu-20.04 + needs: + - build-lint-test + steps: + - uses: actions/checkout@v2 + - run: echo "Great success!"