diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2008c7c21..3ad2ce73a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -19,12 +19,9 @@ env: GOPHERJS_PATH: ${{ github.workspace }}/go/src/github.com/${{ github.repository }} jobs: - smoke_tests: - name: Smoke Tests - strategy: - matrix: - os: [ ubuntu-latest, macos-latest, windows-latest ] - runs-on: ${{ matrix.os }} + build: + name: Ubuntu Smoke + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: @@ -34,7 +31,7 @@ jobs: - name: Setup GopherJS uses: ./.github/actions/setup-gopherjs/ with: - os: ${{ matrix.os }} + os: ubuntu-latest - name: Test GopherJS working-directory: ${{ env.GOPHERJS_PATH }} run: go test -v -short ./... @@ -42,8 +39,7 @@ jobs: working-directory: ${{ env.GOPHERJS_PATH }} run: | gopherjs build -v net/http - gopherjs test -v --short ./tests - gopherjs test -v --short fmt log os sort + gopherjs test -v --short fmt log lint: name: Lint Checks @@ -68,3 +64,47 @@ jobs: working-directory: ${{ env.GOPHERJS_PATH }} # All those packages should have // +build js. run: diff -u <(echo -n) <(go list ./compiler/natives/src/...) + + windows_smoke: + name: Window Smoke + runs-on: windows-latest + steps: + - uses: actions/checkout@v4 + with: + path: ${{ env.GOPHERJS_PATH }} + - name: Copy Actions + run: cp -r ${{ env.GOPHERJS_PATH }}/.github . + - name: Setup GopherJS + uses: ./.github/actions/setup-gopherjs/ + with: + os: windows-latest + - name: Test GopherJS + working-directory: ${{ env.GOPHERJS_PATH }} + run: go test -v -short ./... + - name: Run Tests + working-directory: ${{ env.GOPHERJS_PATH }} + run: | + gopherjs build -v net/http + gopherjs test -v --short fmt sort ./tests + + darwin_smoke: + name: Darwin Smoke + runs-on: macos-latest + steps: + - uses: actions/checkout@v4 + with: + path: ${{ env.GOPHERJS_PATH }} + - name: Copy Actions + run: cp -r ${{ env.GOPHERJS_PATH }}/.github . + - name: Setup GopherJS + uses: ./.github/actions/setup-gopherjs/ + with: + os: macos-latest + - name: Test GopherJS + working-directory: ${{ env.GOPHERJS_PATH }} + run: go test -v -short ./... + - name: Run Tests + working-directory: ${{ env.GOPHERJS_PATH }} + run: | + gopherjs build -v net/http + gopherjs test -v --short fmt log os ./tests