diff --git a/.editorconfig b/.editorconfig index 6edb1fc59..c855ccc7c 100644 --- a/.editorconfig +++ b/.editorconfig @@ -7,3 +7,6 @@ charset = utf-8 indent_style = tab insert_final_newline = true trim_trailing_whitespace = true + +[*.yaml] +indent_style = space diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 000000000..2ccea9c81 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,38 @@ +name: Test + +on: + pull_request: + branches: + - master + paths-ignore: + - '*.md' + - 'catalog/**' + push: + branches: + - master + paths-ignore: + - '*.md' + - 'catalog/**' + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + node_version: + - 14 + - 16 + - 18 + + name: Node.js ${{ matrix.node_version }} + + steps: + - name: Clone + uses: actions/checkout@v3 + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node_version }} + - run: yarn install --frozen-lockfile + - run: yarn test