From b79a8cfc410f55d9f4cd0052252cd5589b2aa13b Mon Sep 17 00:00:00 2001 From: Ross MacArthur Date: Sat, 2 May 2020 21:17:14 +0200 Subject: [PATCH] Build on GitHub Actions --- .github/workflows/main.yaml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/main.yaml diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..a0c7e82 --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,35 @@ +name: build + +on: push + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: '12.x' + - run: npm install --global @zeit/ncc + - run: npm ci + - run: npm run lint + - run: npm run build + + test: + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v2 + + - name: Run self + uses: ./ + with: + version: 0.5.10 + + - name: Check just version + run: just --version | grep "^just v0.5.10$" + shell: bash