diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..82364c4 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,22 @@ +name: Test Project + +#trigger +on: + pull_request: + branches: + - main +jobs: + test: + #the example was ran in ubuntu + runs-on: ubuntu-latest + container: + image: node 20 + steps: + - uses: actions/checkout@v3 #using checkout action + with: + node-version: 20 + - run: npm ci #check all dependencies environment and install it automatically + - run: npm test + - run: npm run build + +