From d69bf7888ab4686296bf957898e9245912f03f53 Mon Sep 17 00:00:00 2001 From: Go Gotaro Date: Mon, 31 Oct 2022 10:59:56 +0700 Subject: [PATCH] feat(ci): add gh actions workflow --- .github/workflows/test.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 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 0000000..e2339fd --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,26 @@ +name: test + +on: + push: + branches: + - '**' + +env: + NODE_VERSION: '19.0.0' + +jobs: + + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: setup (${{ env.NODE_VERSION }}) + uses: actions/setup-node@v2 + with: + node-version: ${{ env.NODE_VERSION }} + - name: test + run: | + export DISPLAY=:99.0 + npm install + xvfb-run --auto-servernum npm test