From a81899752fb3fb682a45da8d3e93e68106c399f7 Mon Sep 17 00:00:00 2001 From: masarakki Date: Mon, 2 Aug 2021 02:04:48 +0900 Subject: [PATCH] add-ci (#2) --- .github/workflows/test.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000000..df411c1344 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,22 @@ +name: test +on: + push: + branches: + - main + pull_request: + branches: + - '**' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - id: node-version + run: echo "::set-output name=NODE_VERSION::${cat .node-verison)" + - uses: actions/setup-node@master + with: + node-version: "${{ steps.node-version.outputs.NODE_VERSION }}" + - run: npm ci + - run: npm run lint + - run: npm run electron:build