Merge pull request #274 from appcelerator/APIGOV-32118 #598
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| - pull_request | |
| - push | |
| jobs: | |
| Lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20.x" | |
| - name: Install dependencies | |
| run: yarn | |
| - name: Lint | |
| run: yarn run gulp lint | |
| MacOsTest: | |
| needs: Lint | |
| name: ${{ matrix.os }} ${{ matrix.nodeVersion }} Tests | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| nodeVersion: ["20.18.2", "22.13.1"] | |
| os: [macos-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.nodeVersion }} | |
| - name: Install dependencies | |
| run: yarn | |
| - name: Run tests | |
| run: yarn run test | |
| WindowsTest: | |
| needs: Lint | |
| name: ${{ matrix.os }} ${{ matrix.nodeVersion }} Tests | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| nodeVersion: ["20.18.2", "22.13.1"] | |
| os: [windows-latest] | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-node@v2 | |
| with: | |
| node-version: ${{ matrix.nodeVersion }} | |
| - name: Install dependencies | |
| run: yarn | |
| - name: Run tests | |
| run: yarn run test | |
| UbuntuTest: | |
| needs: Lint | |
| name: ${{ matrix.os }} ${{ matrix.nodeVersion }} Tests | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| nodeVersion: ["20.18.2", "22.13.1"] | |
| os: [ubuntu-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.nodeVersion }} | |
| - name: Install libsecret | |
| run: sudo apt-get install -y libsecret-1-0 | |
| - name: Install dependencies | |
| run: yarn | |
| - name: Run tests | |
| run: yarn run test |