diff --git a/.github/workflows/ci1.yml b/.github/workflows/ci1.yml index 3db6ea13..ef458b84 100644 --- a/.github/workflows/ci1.yml +++ b/.github/workflows/ci1.yml @@ -42,3 +42,56 @@ jobs: - run: npm run build --if-present - run: npm run compile --if-present - run: cd packages/ethernaut-toolbox && npm t + test-ui: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [20.x] + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm run build --if-present + - run: npm run compile --if-present + - run: cd packages/ethernaut-ui && npm t + test-interact: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [20.x] + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm run build --if-present + - run: npm run compile --if-present + - name: Start local chain + run: | + npm run chain & + sleep 5 + - run: cd packages/ethernaut-interact && npm t + test-challenges: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [20.x] + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm run build --if-present + - run: npm run compile --if-present + - name: Start local chain + run: | + npm run chain & + sleep 5 + - run: cd packages/ethernaut-challenges && npm t