From 34e81e2905e32dd2878b95fb9d5c7eb3b3a0b463 Mon Sep 17 00:00:00 2001 From: mugijiru <106833+mugijiru@users.noreply.github.com> Date: Thu, 11 Mar 2021 19:34:30 +0900 Subject: [PATCH] =?UTF-8?q?GitHub=20Actions=20=E3=81=AB=E3=82=88=E3=82=8B?= =?UTF-8?q?=20CI=20=E3=81=8C=E3=81=A7=E3=81=8D=E3=82=8B=E3=82=88=E3=81=86?= =?UTF-8?q?=E3=81=AB=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..7c6abdf --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,38 @@ +on: push + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Use Node.js + uses: actions/setup-node@v2 + with: + node-version: '14' + + - name: install ember-cli + run: npm install -g ember-cli + + - name: Setup Ember.js Addon + run: | + npm install + + - name: Run ember test + run: + ember test + + - name: Notify slack build result + uses: homoluctus/slatify@master + if: always() + with: + type: ${{ job.status }} + job_name: '*Ember test*' + mention: 'here' + username: 'GitHub Actions' + mention_if: 'failure' + channel: '#develop' + url: ${{ secrets.SLACK_WEBHOOK }} + commit: true + token: ${{ secrets.GITHUB_TOKEN }}