Skip to content

Commit

Permalink
add ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rochdev committed May 10, 2024
1 parent 6e94bf2 commit 0ce5417
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/collector.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Collector

on:
pull_request:
push:
branches: [master]

concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true

jobs:
express:
runs-on: ubuntu-latest
env:
PLUGINS: express|body-parser|cookie-parser
steps:
- uses: actions/checkout@v4
- run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly
- uses: ./.github/actions/testagent/start
- uses: ./.github/actions/node/setup
- run: yarn install
- run: git clone https://github.com/DataDog/libdatadog-nodejs.git
- uses: ./.github/actions/node/oldest
- run: cd libdatadog-nodejs && npm install && npm run build
- run: NODE_OPTIONS="-r $PWD/libdatadog-nodejs/global" yarn test:plugins:ci
- uses: ./.github/actions/node/latest
- run: cd libdatadog-nodejs && npm install && npm run build
- run: NODE_OPTIONS="-r $PWD/libdatadog-nodejs/global" yarn test:plugins:ci
- if: always()
uses: ./.github/actions/testagent/logs

0 comments on commit 0ce5417

Please sign in to comment.