|
| 1 | +name: OpenFeature |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + push: |
| 6 | + branches: [master] |
| 7 | + schedule: |
| 8 | + - cron: 0 4 * * * |
| 9 | + |
| 10 | +concurrency: |
| 11 | + group: ${{ github.workflow }}-${{ github.ref || github.run_id }} |
| 12 | + cancel-in-progress: true |
| 13 | + |
| 14 | +env: |
| 15 | + MOCHA_OPTIONS: ${{ github.ref == 'refs/heads/master' && '--retries 1' || '' }} |
| 16 | + |
| 17 | +jobs: |
| 18 | + unit: |
| 19 | + strategy: |
| 20 | + matrix: |
| 21 | + version: [oldest, maintenance, active, latest] |
| 22 | + runs-on: ubuntu-latest |
| 23 | + steps: |
| 24 | + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
| 25 | + - uses: ./.github/actions/testagent/start |
| 26 | + - uses: ./.github/actions/node |
| 27 | + with: |
| 28 | + version: ${{ matrix.version }} |
| 29 | + - uses: ./.github/actions/install |
| 30 | + - run: yarn test:openfeature:ci |
| 31 | + - if: always() |
| 32 | + uses: ./.github/actions/testagent/logs |
| 33 | + with: |
| 34 | + suffix: openfeature-${{ github.job }}-${{ matrix.version }} |
| 35 | + - uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1 |
| 36 | + - uses: DataDog/junit-upload-github-action@762867566348d59ac9bcf479ebb4ec040db8940a # v2.0.0 |
| 37 | + if: always() |
| 38 | + with: |
| 39 | + api_key: ${{ secrets.DD_API_KEY }} |
| 40 | + service: dd-trace-js-tests |
| 41 | + |
| 42 | + macos: |
| 43 | + runs-on: macos-latest |
| 44 | + steps: |
| 45 | + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
| 46 | + - uses: ./.github/actions/node/latest |
| 47 | + - uses: ./.github/actions/install |
| 48 | + - run: yarn test:integration:openfeature |
| 49 | + - uses: DataDog/junit-upload-github-action@762867566348d59ac9bcf479ebb4ec040db8940a # v2.0.0 |
| 50 | + if: always() |
| 51 | + with: |
| 52 | + api_key: ${{ secrets.DD_API_KEY }} |
| 53 | + service: dd-trace-js-tests |
| 54 | + |
| 55 | + ubuntu: |
| 56 | + runs-on: ubuntu-latest |
| 57 | + steps: |
| 58 | + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
| 59 | + - uses: ./.github/actions/node/oldest-maintenance-lts |
| 60 | + - uses: ./.github/actions/install |
| 61 | + - run: yarn test:integration:openfeature |
| 62 | + - uses: ./.github/actions/node/newest-maintenance-lts |
| 63 | + - run: yarn test:integration:openfeature |
| 64 | + - uses: ./.github/actions/node/active-lts |
| 65 | + - run: yarn test:integration:openfeature |
| 66 | + - uses: ./.github/actions/node/latest |
| 67 | + - run: yarn test:integration:openfeature |
| 68 | + - uses: DataDog/junit-upload-github-action@762867566348d59ac9bcf479ebb4ec040db8940a # v2.0.0 |
| 69 | + if: always() |
| 70 | + with: |
| 71 | + api_key: ${{ secrets.DD_API_KEY }} |
| 72 | + service: dd-trace-js-tests |
| 73 | + |
| 74 | + windows: |
| 75 | + runs-on: windows-latest |
| 76 | + steps: |
| 77 | + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
| 78 | + - uses: ./.github/actions/node/latest |
| 79 | + - uses: ./.github/actions/install |
| 80 | + with: |
| 81 | + cache: 'true' |
| 82 | + - run: yarn test:integration:openfeature |
| 83 | + - uses: DataDog/junit-upload-github-action@762867566348d59ac9bcf479ebb4ec040db8940a # v2.0.0 |
| 84 | + if: always() |
| 85 | + with: |
| 86 | + api_key: ${{ secrets.DD_API_KEY }} |
| 87 | + service: dd-trace-js-tests |
0 commit comments