From 6d00bdae2bc3b7b4f3b58c0141c4eb9628b630cc Mon Sep 17 00:00:00 2001 From: Rafael Bardini Date: Sun, 5 Jul 2020 15:17:34 +0200 Subject: [PATCH] Add GitHub workflow --- .github/workflows/main.yml | 24 ++++++++++++++++++++++++ .lintstagedrc.json | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..5074752 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,24 @@ +name: Main +on: push + +jobs: + test-and-release: + name: Test and release + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup Node.js + uses: actions/setup-node@v1 + with: + node-version: 12 + + - name: Install + run: npm ci + + - name: Lint + run: npm run lint + + - name: Test + run: npm test diff --git a/.lintstagedrc.json b/.lintstagedrc.json index 59870ae..563ccdd 100644 --- a/.lintstagedrc.json +++ b/.lintstagedrc.json @@ -1,4 +1,4 @@ { "*.js": ["eslint --fix", "prettier --write"], - "*.{css,json,md}": "prettier --write" + "*.{css,json,md,yml": "prettier --write" }