diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..e67cad6f --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,23 @@ +name: Build + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node: [12, 14] + + steps: + - uses: actions/checkout@v2 + + - name: Use Node.js ${{ matrix.node }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node }} + + - run: cp config.template.js config.js + - run: npm install + - run: npm run build diff --git a/.github/workflows/check-source-formatting.yml b/.github/workflows/check-source-formatting.yml new file mode 100644 index 00000000..f5666354 --- /dev/null +++ b/.github/workflows/check-source-formatting.yml @@ -0,0 +1,23 @@ +name: Check source formatting + +on: [push, pull_request] + +jobs: + check-source-formatting: + runs-on: ubuntu-latest + + strategy: + matrix: + node: [12, 14] + + steps: + - uses: actions/checkout@v2 + + - name: Use Node.js ${{ matrix.node }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node }} + + - run: cp config.template.js config.js + - run: npm install + - run: npm run check-source-formatting diff --git a/.github/workflows/check-types.yml b/.github/workflows/check-types.yml new file mode 100644 index 00000000..ad853384 --- /dev/null +++ b/.github/workflows/check-types.yml @@ -0,0 +1,23 @@ +name: Check types + +on: [push, pull_request] + +jobs: + check-types: + runs-on: ubuntu-latest + + strategy: + matrix: + node: [12, 14] + + steps: + - uses: actions/checkout@v2 + + - name: Use Node.js ${{ matrix.node }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node }} + + - run: cp config.template.js config.js + - run: npm install + - run: npm run check-types diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 00000000..a6e63f17 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,23 @@ +name: Lint + +on: [push, pull_request] + +jobs: + lint: + runs-on: ubuntu-latest + + strategy: + matrix: + node: [12, 14] + + steps: + - uses: actions/checkout@v2 + + - name: Use Node.js ${{ matrix.node }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node }} + + - run: cp config.template.js config.js + - run: npm install + - run: npm run lint