> For the complete documentation index, see [llms.txt](https://tvn.gitbook.io/selenium-java/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tvn.gitbook.io/selenium-java/circle-ci/integrate-circle-ci.md).

# Integrate Circle CI

![](/files/-Mab1hE7kGC5q13VvtHS)

1. Tạo tài khoản Github
2. Install [git bash](https://git-scm.com/downloads)
3. setup git&#x20;

```
$ git config --global user.name "John Doe"
$ git config --global user.email johndoe@example.com
```

* Github Action is support run your code on circle CI free, blow is config:&#x20;

![](/files/-MaICcQGnNdOxj6YLTVy)

```
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Java CI with Maven

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2
      - name: Set up JDK 1.8
        uses: actions/setup-java@v1
        with:
          java-version: 1.8
      - name: Run Selenium Test
        run: mvn test -Dtestplan=todoTestPlan.xml
      - name: Publish Test Report
        uses: scacap/action-surefire-report@v1
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          publish_dir: ./target/surefire-reports/
```

* Change open browser to headless mode

```
ublic static void launch(String name) {
    if (name.equalsIgnoreCase("chrome")) {
        WebDriverManager.chromedriver().setup();
        ChromeOptions chromeOptions = new ChromeOptions();
        chromeOptions.setHeadless(true);
        driver = new ChromeDriver(chromeOptions);
    } else if (name.equalsIgnoreCase("firefox")) {
        WebDriverManager.firefoxdriver().setup();
        driver = new FirefoxDriver();
    } else if (name.equalsIgnoreCase("ie")) {
        WebDriverManager.iedriver().setup();
        driver = new InternetExplorerDriver();
    }
    mouse = new Actions(getDriver());
    wait = new WebDriverWait(getDriver(), 30);
}
```

&#x20;

![](/files/-MaS9DQ7CxORLB-JL31T)
