Skip to content

Commit 7e9a9e4

Browse files
authored
chore(git): merge pull request #12 from mathieu-bour/feat/amdv7-arch
feat(arch): add support for ARM-based architectures
2 parents 3f8d81f + e74dbce commit 7e9a9e4

21 files changed

Lines changed: 5795 additions & 2330 deletions

.depcheckrc.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
ignores:
2+
# Tests
3+
- '@types/jest'
4+
# Workflow
5+
- husky
6+
- lint-staged
7+
- standard-commit

.github/workflows/tests.yml

Lines changed: 80 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,100 @@
11
name: Tests
22
on:
33
push:
4-
branches: [ main ]
4+
branches: [main]
55
pull_request:
6-
types: [ opened, synchronize, reopened ]
6+
types: [opened, synchronize, reopened]
77
jobs:
88
lint:
9-
name: Lint with ESLint + TypeCheck
9+
name: Lint with ESLint
1010
runs-on: ubuntu-20.04
1111
steps:
1212
- name: Checkout
1313
uses: actions/checkout@v2
14-
- name: Setup node
15-
uses: actions/setup-node@v1
14+
- name: Setup Node.js
15+
uses: actions/setup-node@v2
1616
with:
17-
node-version: '15'
18-
- name: Install NPM dependencies
17+
node-version: '12'
18+
- name: Cache dependencies
19+
uses: actions/cache@v2
20+
with:
21+
path: ~/.npm
22+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
23+
restore-keys: |
24+
${{ runner.os }}-node-
25+
- name: Install dependencies
1926
run: npm install
2027
- name: Run ESLint
2128
run: npm run lint
29+
format:
30+
name: Format with Prettier
31+
runs-on: ubuntu-20.04
32+
steps:
33+
- name: Checkout
34+
uses: actions/checkout@v2
35+
- name: Setup Node.js
36+
uses: actions/setup-node@v2
37+
with:
38+
node-version: '12'
39+
- name: Cache dependencies
40+
uses: actions/cache@v2
41+
with:
42+
path: ~/.npm
43+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
44+
restore-keys: |
45+
${{ runner.os }}-node-
46+
- name: Install dependencies
47+
run: npm install
48+
- name: Run Prettier
49+
run: npm run format:check
50+
depcheck:
51+
name: Check dependencies with depcheck
52+
runs-on: ubuntu-20.04
53+
steps:
54+
- name: Checkout
55+
uses: actions/checkout@v2
56+
- name: Setup Node.js
57+
uses: actions/setup-node@v2
58+
with:
59+
node-version: '12'
60+
- name: Cache dependencies
61+
uses: actions/cache@v2
62+
with:
63+
path: ~/.npm
64+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
65+
restore-keys: |
66+
${{ runner.os }}-node-
67+
- name: Install dependencies
68+
run: npm install
69+
- name: Run depcheck
70+
run: npm run depcheck
71+
typecheck:
72+
name: TypeCheck with tsc
73+
runs-on: ubuntu-20.04
74+
steps:
75+
- name: Checkout
76+
uses: actions/checkout@v2
77+
- name: Setup Node.js
78+
uses: actions/setup-node@v2
79+
with:
80+
node-version: '12'
81+
- name: Cache dependencies
82+
uses: actions/cache@v2
83+
with:
84+
path: ~/.npm
85+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
86+
restore-keys: |
87+
${{ runner.os }}-node-
88+
- name: Install dependencies
89+
run: npm install
2290
- name: Run TypeCheck
2391
run: npm run typecheck
24-
test:
92+
integration:
2593
name: Test Sentry Integration
2694
strategy:
2795
matrix:
28-
os: [ ubuntu-16.04, ubuntu-18.04, ubuntu-20.04, macos-10.15, windows-2019 ]
29-
version: [ latest, 1.58.0 ]
96+
os: [ubuntu-18.04, ubuntu-20.04, macos-10.15, windows-2019]
97+
version: [latest, 1.58.0]
3098
fail-fast: false
3199
runs-on: ${{ matrix.os }}
32100
steps:
@@ -47,11 +115,11 @@ jobs:
47115
sentry-cli --help
48116
sentry-cli info
49117
- name: Deploy Sentry release
50-
if: matrix.os == 'ubuntu-20.04' && matrix.version == 'latest' # do not duplicate releases
118+
if: matrix.os == 'ubuntu-20.04' && matrix.version == 'latest' # do not duplicate releases
51119
run: |
52120
VERSION=$(sentry-cli releases propose-version)
53121
sentry-cli releases new "$VERSION"
54-
sentry-cli releases set-commits "$VERSION" --auto
122+
sentry-cli releases set-commits "$VERSION" --auto || true
55123
sentry-cli releases files "$VERSION" upload-sourcemaps ./dist \
56124
--rewrite \
57125
--ext map \

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install standard-commithook

.husky/pre-commit

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npm run build
5+
git add dist
6+
npx --no-install lint-staged

.huskyrc.yaml

Lines changed: 0 additions & 3 deletions
This file was deleted.

.prettierignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/.idea
2+
/.husky
3+
/dist
4+
/.*ignore
5+
/package-lock.json

.prettierrc.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

.standard-commitrc.json

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
{
2-
"types": [
3-
"feat",
4-
"fix",
5-
"chore",
6-
"build",
7-
"ci",
8-
"docs",
9-
"perf",
10-
"refactor",
11-
"revert",
12-
"style",
13-
"test"
14-
],
2+
"types": ["feat", "fix", "chore", "build", "ci", "docs", "perf", "refactor", "revert", "style", "test"],
153
"promptScope": "suggest",
164
"scopes": "staged"
175
}

CHANGELOG.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
# Changelog
22

3+
## [Version 1.2.0](https://github.com/mathieu-bour/setup-sentry-cli/releases/tag/1.2.0)
4+
5+
- **feat**(arch): add support for ARM-based architectures (closes #11), thanks to @paresy for your support!
6+
37
## [Version 1.1.0](https://github.com/mathieu-bour/setup-sentry-cli/releases/tag/1.1.0)
8+
49
- **fix**(macos): make sentry-cli command available on macOS (fixes #4)
5-
- **build**(*): use esbuild instead of @zeit/ncc
10+
- **build**(\*): use esbuild instead of @zeit/ncc
611
- **ci**(actions): update the Sentry Integration Test
712
- **chore**(rebrand): the repository is now maintained by [mathieu-bour](https://github.com/mathieu-bour)
813

914
## [Version 1.0.0](https://github.com/mathieu-bour/setup-sentry-cli/releases/tag/1.0.0)
15+
1016
- **security**(deps): bump [@actions/core](https://github.com/actions/toolkit/tree/main/packages/core) from 1.2.4 to 1.2.6 (fixes [GHSA-mfwh-5m23-j46w](https://github.com/actions/toolkit/security/advisories/GHSA-mfwh-5m23-j46w))
11-
- **fix**(ci): set setup-node version to @v1
17+
- **fix**(ci): set setup-node version to @v1

0 commit comments

Comments
 (0)