Skip to content

Hexlet/project-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

project-action

Action for testing projects

test

Install

make setup

Build

make build

Test Artifacts Convention

Tests inside the Docker container should write artifacts (screenshots, traces, HTML reports) to /project/tmp/artifacts/.

The project's docker-compose.yml must mount the source directory to /project:

services:
  app:
    volumes:
      - .:/project
    working_dir: /project

After tests finish, the action automatically uploads everything under /project/tmp/artifacts/ as a test-results GitHub Actions artifact. Students download it and open playwright-report/index.html locally.

Example playwright.config.js:

export default defineConfig({
  outputDir: '/project/tmp/artifacts/traces',
  reporter: [['html', { outputFolder: '/project/tmp/artifacts/playwright-report', open: 'never' }]],
  use: {
    trace: 'retain-on-failure',
    screenshot: 'only-on-failure',
  },
});

Hexlet Ltd. logo

This repository is created and maintained by the team and the community of Hexlet, an educational project. Read more about Hexlet.

See most active contributors on hexlet-friends.

About

CI Action for student's projects

Resources

License

Stars

Watchers

Forks

Contributors