diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000000..8eba4989e7 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,27 @@ +name: Kubernetes Javascript Client - Validation + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node: [ '12', '10' ] + name: Node ${{ matrix.node }} validation + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node }} + # Pre-check to validate that versions match between package.json + # and package-lock.json. Needs to run before npm install + - run: node version-check.js + - run: npm install + - run: npm test + - run: npm lint + diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 3b72938575..0000000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: node_js -node_js: - - "8" - - "10" - -before_install: - # Pre check to check that version matches package-lock.json - # needs to happen before npm install - - node version-check.js - -install: - - 'npm install' -script: - - 'npm test' - - 'npm run lint'