Skip to content

Commit

Permalink
Merge branch 'master' into docker_systemtest
Browse files Browse the repository at this point in the history
  • Loading branch information
jveihelmann committed Aug 23, 2023
2 parents 4fc5fc3 + 72452e1 commit c54bb64
Show file tree
Hide file tree
Showing 71 changed files with 29,668 additions and 14,046 deletions.
49 changes: 40 additions & 9 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,50 @@
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked",
"plugin:workspaces/recommended",
"standard",
"prettier",
"plugin:@typescript-eslint/recommended"
"prettier"
],
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": [
"./packages/*/tsconfig.json",
"./packages/teamscale-javascript-instrumenter/tsconfig.vaccine.json"
]
},
"plugins": [
"@typescript-eslint",
"workspaces"
],
"plugins": ["@typescript-eslint", "workspaces"],
"env": {
"es6": true,
"node": true
},
"ignorePatterns": ["dist", "lib", "node_modules", "examples", "scripts", "test"]
"ignorePatterns": [
"dist",
"lib",
"node_modules",
"examples",
"scripts",
"test"
],
"rules": {
// All of those would probably make sense, but needs to be enabled and fixed one by one
"@typescript-eslint/consistent-type-definitions": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/prefer-nullish-coalescing": "off",
"@typescript-eslint/unbound-method": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/array-type": "off",
"@typescript-eslint/consistent-generic-constructors": "off",
"@typescript-eslint/require-await": "off",
"@typescript-eslint/no-misused-promises": "off",
"@typescript-eslint/restrict-plus-operands": "off",
"@typescript-eslint/consistent-indexed-object-style": "off",
"@typescript-eslint/no-unsafe-member-access": "off"
}
}
119 changes: 96 additions & 23 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
on:
push:
branches: '*'
tags: 'v*'
pull_request:
branches: '*'

Expand All @@ -13,38 +14,110 @@ jobs:
steps:
- name: Check out the code
uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'npm'
- run: npm install -g yarn
- name: Install the base dependencies
run: yarn install
- name: Install, build, and test the Commons Library
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: pnpm-store-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- uses: actions/cache@v3
name: Setup Cypress cache
with:
path: ~/.cache/Cypress
key: cypress-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build and test the Commons Library
working-directory: ./packages/cqse-commons
run: |
yarn install
yarn build
yarn test
- name: Install, build, and test the Instrumenter
pnpm build
pnpm test
- name: Build and test the Instrumenter
working-directory: ./packages/teamscale-javascript-instrumenter
run: |
yarn install
yarn build
yarn test
- name: Install, build, and test the Collector
run: |
pnpm build
pnpm test
- name: Build and test the Collector
working-directory: ./packages/teamscale-coverage-collector
run: |
yarn install
yarn build
yarn test
run: |
pnpm build
pnpm test
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Run the system test
uses: GabrielBB/xvfb-action@v1
with:
run: yarn systemtest
- run: echo "Done."
run: pnpm systemtest
- name: Publish the Commons Library
if: startsWith(github.ref, 'refs/tags/v')
working-directory: ./packages/cqse-commons
run: |
pnpm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
pnpm publish --ignore-scripts --no-git-checks
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish the Collector
if: startsWith(github.ref, 'refs/tags/v')
working-directory: ./packages/teamscale-coverage-collector
run: |
pnpm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
pnpm publish --ignore-scripts --no-git-checks
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish the Instrumenter
if: startsWith(github.ref, 'refs/tags/v')
working-directory: ./packages/teamscale-javascript-instrumenter
run: |
pnpm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
pnpm publish --ignore-scripts --no-git-checks
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

docker:
name: Build the Docker Image
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: cqse/teamscale-coverage-collector
- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- run: ls
- name: Build and push
uses: docker/build-push-action@v4
with:
context: ./packages/teamscale-coverage-collector
file: ./packages/teamscale-coverage-collector/Dockerfile
push: ${{ startsWith(github.ref, 'refs/tags/v') }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
82 changes: 0 additions & 82 deletions .github/workflows/release.yml

This file was deleted.

1 change: 0 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/teamscale-javascript-profiler.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

363 changes: 0 additions & 363 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

This file was deleted.

Loading

0 comments on commit c54bb64

Please sign in to comment.