Skip to content

Commit

Permalink
added: actions setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Salmandabbakuti committed Nov 23, 2023
1 parent 7e7451d commit 88cfc84
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Build & Test

on:
push:
branches: [main, develop, "feat/*"]
pull_request:
branches: [main, develop, "feat/*"]

jobs:
e2e-test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [18.x, 20.x, 21.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: "Install dependencies"
run: npm install
- name: "Run tests"
run: npm run test
- name: "Build the package"
run: npm run build --if-present

0 comments on commit 88cfc84

Please sign in to comment.