diff options
author | 2020-09-28 12:14:06 +0100 | |
---|---|---|
committer | 2020-09-28 12:14:06 +0100 | |
commit | d4f21bfa10a154d1d0b6edbd219ee03f5f82d604 (patch) | |
tree | ca7f291ee2475ccc8af28c7c7e7a2ba0558f81af | |
parent | Merge pull request #4 from python-discord/testing/add-initial-tests (diff) | |
parent | yarn seems to be pre-installed on the runner (diff) |
Merge pull request #5 from python-discord/testing/add-test-workflow
Create test and lint workflow
-rw-r--r-- | .github/workflows/test_and_lint.yml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/.github/workflows/test_and_lint.yml b/.github/workflows/test_and_lint.yml new file mode 100644 index 0000000..86ac818 --- /dev/null +++ b/.github/workflows/test_and_lint.yml @@ -0,0 +1,36 @@ +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: 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: Install dependencies + run: yarn install + + - name: Install dependencies + run: yarn test + + |