Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

Commit 7d07868

Browse files
authored
Merge pull request #3 from argos-ci/config-ci
feat: config ci
2 parents 57c5f69 + 6f41633 commit 7d07868

File tree

4 files changed

+4030
-30
lines changed

4 files changed

+4030
-30
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v3
11+
with:
12+
fetch-depth: 2
13+
14+
- name: Use Node.js
15+
uses: actions/setup-node@v3
16+
with:
17+
node-version: 16
18+
19+
- name: Install dependencies
20+
run: npm ci
21+
22+
- name: Lint & Format
23+
run: npm run lint && npm run format
24+
25+
- name: Test
26+
run: npm run test
27+
28+
- name: Argos upload screenshots
29+
run: npx argos upload cypress/screenshots
30+
env:
31+
ARGOS_TOKEN: ${{ secrets.ARGOS_TOKEN }}

cypress/e2e/argosScreenshot.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const screenshotsFolder = Cypress.browser.isHeaded
22
? `./cypress/screenshots/argos`
3-
: `./cypress/screenshots/argos/${Cypress.spec.name}`;
3+
: `./cypress/screenshots/${Cypress.spec.name}/argos`;
44

55
describe("argosScreenshot", () => {
66
before(() => {

0 commit comments

Comments
 (0)