Skip to content

Commit

Permalink
Merge pull request #925 from nearst/acceptance-test-gh-actions
Browse files Browse the repository at this point in the history
chore: run acceptance test in NearSt env & recent Node
  • Loading branch information
tschoffelen authored Mar 2, 2024
2 parents 7cdb1da + 5ca0590 commit aa36432
Show file tree
Hide file tree
Showing 17 changed files with 40,346 additions and 25,769 deletions.
104 changes: 0 additions & 104 deletions .circleci/config.yml

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/acceptance-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Acceptance test

on:
push:
branches: [master]
merge_group:
workflow_dispatch:

concurrency:
group: acceptance-test

jobs:
acceptance-test:
name: 🛠️ Run acceptance tests
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
actions: write
env:
NODE_VERSION: 20
AWS_REGION: us-east-1
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Setup node v20
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- name: Install dependencies
run: npm ci

- name: Configure AWS Credentials
uses: aws-actions/[email protected]
with:
role-to-assume: arn:aws:iam::211125641521:role/github-e2e-test
aws-region: us-east-1

- name: Run tests
run: npm run test:acceptance
42 changes: 42 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Tests

on:
push:
merge_group:
workflow_dispatch:

concurrency:
group: test-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: 🧪 Run tests
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16, 18, 20]
env:
NODE_VERSION: ${{ matrix.node-version }}
AWS_REGION: us-east-1
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Setup node v${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm

- name: Setup java 17
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 17

- name: Install dependencies
run: npm ci

- name: Run tests
run: npm run test:ci && npm run test:integration
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"javascript.updateImportsOnFileMove.enabled": "always",
"prettier.proseWrap": "always",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
}
}
Loading

0 comments on commit aa36432

Please sign in to comment.