From 555ec60c65ca6dec96e65523604763e58d0d0cf1 Mon Sep 17 00:00:00 2001 From: DouBa Date: Fri, 17 Apr 2020 11:39:34 +0800 Subject: [PATCH 1/3] Create nodejs.yml --- .github/workflows/nodejs.yml | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/nodejs.yml diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml new file mode 100644 index 0000000000..c006c9b39c --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -0,0 +1,40 @@ +# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: Node.js CI + +on: + release: + types: [published] + push: + tags: + - 'v*' + # branches: + # - master + schedule: + - cron: "5 16 * * *" + watch: + types: [started] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [10.x, 12.x] + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm run build --if-present + - name: Install Pack + run: npm install + - name: Test + run: npm test + env: + CI: true + From d0bb2ead25862986949f6de88992bf4f0b406123 Mon Sep 17 00:00:00 2001 From: DouBa Date: Fri, 17 Apr 2020 12:21:35 +0800 Subject: [PATCH 2/3] Update nodejs.yml --- .github/workflows/nodejs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index c006c9b39c..34133a4af0 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [10.x, 12.x] + node-version: [12.x] steps: - name: Checkout uses: actions/checkout@v2 From 8c84a4decc7e83f1bb5700ff16c54b5b49395064 Mon Sep 17 00:00:00 2001 From: DouBa Date: Fri, 17 Apr 2020 12:34:53 +0800 Subject: [PATCH 3/3] Delete nodejs.yml --- .github/workflows/nodejs.yml | 40 ------------------------------------ 1 file changed, 40 deletions(-) delete mode 100644 .github/workflows/nodejs.yml diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml deleted file mode 100644 index 34133a4af0..0000000000 --- a/.github/workflows/nodejs.yml +++ /dev/null @@ -1,40 +0,0 @@ -# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions - -name: Node.js CI - -on: - release: - types: [published] - push: - tags: - - 'v*' - # branches: - # - master - schedule: - - cron: "5 16 * * *" - watch: - types: [started] - -jobs: - build: - runs-on: ubuntu-latest - strategy: - matrix: - node-version: [12.x] - steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: npm ci - - run: npm run build --if-present - - name: Install Pack - run: npm install - - name: Test - run: npm test - env: - CI: true -