From 92e5fba290a1d521810d1840d32abd19ce919723 Mon Sep 17 00:00:00 2001 From: "deepunitai[bot]" <151955718+deepunitai[bot]@users.noreply.github.com> Date: Fri, 1 Mar 2024 05:58:10 +0000 Subject: [PATCH] Add DeepUnit workflow --- .github/workflows/deepunit-generate.yml | 39 +++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/deepunit-generate.yml diff --git a/.github/workflows/deepunit-generate.yml b/.github/workflows/deepunit-generate.yml new file mode 100644 index 00000000..53b83ad8 --- /dev/null +++ b/.github/workflows/deepunit-generate.yml @@ -0,0 +1,39 @@ +name: DeepUnit Workflow + +on: + workflow_dispatch: + inputs: + paths: + description: 'Paths to test' + required: true + meta: + description: 'Meta Data' + required: true + +jobs: + run-deepunit: + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '18' + + - name: Install Dependencies + run: npm install + + - name: Get Committer Email + id: get-committer-email + run: echo "COMMITTER_EMAIL=$(git log -1 --pretty=format:'%ae')" >> $GITHUB_ENV + + - name: Run DeepUnit + run: npx deepunit@latest --f ${{ github.event.inputs.paths }} --json --y --ff --ap --email ${{ env.COMMITTER_EMAIL }} --meta ${{ github.event.inputs.meta }} + + - name: Store as Artifact + uses: actions/upload-artifact@v2 + with: + name: deepunit-tests + path: deepunit-tests.json \ No newline at end of file