diff --git a/.github/workflows/integrate.yml b/.github/workflows/integrate.yml new file mode 100644 index 0000000..ea76dfe --- /dev/null +++ b/.github/workflows/integrate.yml @@ -0,0 +1,26 @@ +name: Continuos Integration + +on: + pull_request: + branches: + - master + +jobs: + test_pull_request: + name: Test pull request + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: 'lts/*' + + - name: Install Dependencies + run: npm ci + + - name: Test + run: npm run test:ci + + - name: Test build + run: npm run build \ No newline at end of file diff --git a/package.json b/package.json index 98d896a..5520d89 100644 --- a/package.json +++ b/package.json @@ -56,6 +56,7 @@ "prepack": "rm -rf lib && tsc -b && oclif-dev readme", "test": "jest --watchAll", "test:ci": "jest", + "build": "tsc -b", "version": "oclif-dev readme && git add README.md", "har-to-mocks": "bin/run" },