diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..dad4160 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,27 @@ +name: thoughtbelt CI + +on: + push: + branches: [main] + pull_request + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [14.x, 16.x, 18.x, 20.x] + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + - name: Install dependencies + run: yarn --frozen-lockfile + - name: Run linter + run: yarn lint + - name: Run tests + run: yarn test diff --git a/package.json b/package.json index 43337f4..20ccab4 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "scripts": { "belt": "bin/belt", "lint": "eslint --max-warnings=0 --ext js,jsx,ts,tsx .", - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"testing not yet configured\"" }, "author": "Stephen Hanson", "license": "MIT",