From 516754f97e1b9055ca738ba79e4a8349802b728f Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Mon, 28 Sep 2020 12:03:51 +0100 Subject: Create test_and_lint.yml --- .github/workflows/test_and_lint.yml | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/test_and_lint.yml diff --git a/.github/workflows/test_and_lint.yml b/.github/workflows/test_and_lint.yml new file mode 100644 index 0000000..7b8df95 --- /dev/null +++ b/.github/workflows/test_and_lint.yml @@ -0,0 +1,42 @@ +name: Test & Lint + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: EgorDm/gha-yarn-node-cache@v1 + + - name: action-yarn + uses: comchangs/action-yarn@v0.1-beta + + - name: Install dependencies + run: yarn install + + - name: Install dependencies + run: yarn build + + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: EgorDm/gha-yarn-node-cache@v1 + + - name: action-yarn + uses: comchangs/action-yarn@v0.1-beta + + - name: Install dependencies + run: yarn install + + - name: Install dependencies + run: yarn test + + -- cgit v1.2.3