diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000000..4fc1a8eb37 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,107 @@ +name: CI + +on: + pull_request: {} + +permissions: + actions: read + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.event.number || github.sha }} + cancel-in-progress: true + +jobs: + install: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + cache: 'yarn' + cache-dependency-path: 'yarn.lock' + - run: yarn --frozen-lockfile --non-interactive + + lint-affected: + runs-on: ubuntu-latest + needs: install + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + cache: 'yarn' + cache-dependency-path: 'yarn.lock' + - run: yarn --frozen-lockfile --non-interactive + - uses: nrwl/nx-set-shas@v4 + - run: yarn nx affected -t lint + + test-affected: + runs-on: ubuntu-latest + needs: install + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + cache: 'yarn' + cache-dependency-path: 'yarn.lock' + - run: yarn --frozen-lockfile --non-interactive + - uses: nrwl/nx-set-shas@v4 + - run: yarn nx affected -t test + + e2e-affected: + runs-on: ubuntu-latest + needs: install + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + cache: 'yarn' + cache-dependency-path: 'yarn.lock' + - run: yarn --frozen-lockfile --non-interactive + - uses: nrwl/nx-set-shas@v4 + - run: yarn nx affected -t e2e --exclude=docs-app + + build-affected: + runs-on: ubuntu-latest + needs: install + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + cache: 'yarn' + cache-dependency-path: 'yarn.lock' + - run: yarn --frozen-lockfile --non-interactive + - uses: nrwl/nx-set-shas@v4 + - run: yarn nx affected -t build + + schematics-core-check: + runs-on: ubuntu-latest + needs: install + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + cache: 'yarn' + cache-dependency-path: 'yarn.lock' + - run: yarn --frozen-lockfile --non-interactive + - uses: nrwl/nx-set-shas@v4 + - run: yarn copy:schematics + - run: yarn schematics:check diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000000..206567a244 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,109 @@ +name: main + +on: + push: + branches: + - main + +permissions: + actions: read + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.event.number || github.sha }} + cancel-in-progress: true + +jobs: + install: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + cache: 'yarn' + cache-dependency-path: 'yarn.lock' + - run: yarn --frozen-lockfile --non-interactive + + lint: + runs-on: ubuntu-latest + needs: install + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + cache: 'yarn' + cache-dependency-path: 'yarn.lock' + - run: yarn --frozen-lockfile --non-interactive + - uses: nrwl/nx-set-shas@v4 + - run: yarn nx run-many -t lint + + test: + runs-on: ubuntu-latest + needs: install + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + cache: 'yarn' + cache-dependency-path: 'yarn.lock' + - run: yarn --frozen-lockfile --non-interactive + - uses: nrwl/nx-set-shas@v4 + - run: yarn nx run-many -t test + + e2e: + runs-on: ubuntu-latest + needs: install + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + cache: 'yarn' + cache-dependency-path: 'yarn.lock' + - run: yarn --frozen-lockfile --non-interactive + - uses: nrwl/nx-set-shas@v4 + - run: yarn nx run-many -t e2e --exclude=docs-app + + build: + runs-on: ubuntu-latest + needs: install + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + cache: 'yarn' + cache-dependency-path: 'yarn.lock' + - run: yarn --frozen-lockfile --non-interactive + - uses: nrwl/nx-set-shas@v4 + - run: yarn build + + schematics-core-check: + runs-on: ubuntu-latest + needs: install + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + cache: 'yarn' + cache-dependency-path: 'yarn.lock' + - run: yarn --frozen-lockfile --non-interactive + - uses: nrwl/nx-set-shas@v4 + - run: yarn copy:schematics + - run: yarn schematics:check diff --git a/projects/ngrx.io/src/karma.conf.js b/projects/ngrx.io/src/karma.conf.js index 0d2fed3ee2..c29a02be5c 100644 --- a/projects/ngrx.io/src/karma.conf.js +++ b/projects/ngrx.io/src/karma.conf.js @@ -25,14 +25,8 @@ module.exports = function (config) { colors: true, logLevel: config.LOG_INFO, autoWatch: true, - browsers: ['CustomChrome'], + browsers: ['ChromeHeadless'], browserNoActivityTimeout: 60000, - singleRun: false, - customLaunchers: { - CustomChrome: { - base: 'Chrome', - flags: process.env.TRAVIS && ['--no-sandbox'] - } - } + singleRun: false }); };