Skip to content

Commit

Permalink
ci: optimize test pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
alexplischke committed Jan 25, 2024
1 parent b5c8e95 commit f344bd3
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 17 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: "CodeQL"
name: CodeQL

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

jobs:
analyze:
Expand All @@ -20,7 +21,7 @@ jobs:
matrix:
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
language: [ 'go' ]
language: ["go"]

steps:
- name: Checkout repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docker release
name: Docker Release

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-request-linter.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Pull Request Linter
name: Lint PR

on:
pull_request:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: saucectl release
name: Release

on:
push:
Expand All @@ -23,7 +23,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
go-version: "1.21"

- uses: actions/cache@v3
with:
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: saucectl tests pipeline
name: Test

on:
workflow_dispatch:
pull_request:
push:
branches:
- main

env:
SAUCE_USERNAME: ${{secrets.SAUCE_USERNAME}}
Expand All @@ -22,7 +20,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
go-version: "1.21"

- name: Checkout Code
uses: actions/checkout@v4
Expand All @@ -42,7 +40,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
go-version: "1.21"
cache: true

- name: Run tests
Expand Down Expand Up @@ -87,7 +85,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
go-version: "1.21"
cache: true

- name: Build Project
Expand Down Expand Up @@ -229,7 +227,7 @@ jobs:
--cypress.configFile "cypress.config.js" \
--timeout 10m \
-r us-west-1
cypress-windows:
needs: build
runs-on: windows-latest
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
saucectl
========
![build](https://github.com/saucelabs/saucectl-internal/workflows/saucectl%20tests%20pipeline/badge.svg?branch=main)

The `saucectl` command line interface orchestrates the tests in your framework, providing rich parallelization,
test history filtering, and analytics in Sauce Labs.
Expand Down

0 comments on commit f344bd3

Please sign in to comment.