From 20d150786ca4dcdfe1032499a5d516b9505881e9 Mon Sep 17 00:00:00 2001 From: DiegoVictor Date: Sun, 25 Feb 2024 01:02:11 -0300 Subject: [PATCH] Add github action config --- .github/workflows/config.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/config.yml diff --git a/.github/workflows/config.yml b/.github/workflows/config.yml new file mode 100644 index 0000000..9c07c45 --- /dev/null +++ b/.github/workflows/config.yml @@ -0,0 +1,19 @@ +name: Pipeline +on: + push: + branches: [ main ] +jobs: + build: + runs-on: ubuntu-latest + env: + REACT_APP_API_URL: 'http://localhost:3333' + steps: + - uses: actions/setup-node@v4 + - uses: actions/checkout@v4 + - name: Run tests + run: | + npm ci + npm run test + - uses: codecov/codecov-action@v3 + with: + directory: ./tests/coverage/