mirror of
https://github.com/jwetzell/itsfiveoclockwhere.git
synced 2026-07-26 10:28:45 +00:00
Add github action to deploy
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
name: Buid and Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v2.1.2
|
||||
with:
|
||||
node-version: '12.x'
|
||||
- run: npm install
|
||||
- run: npm run build
|
||||
|
||||
- name: FTP Deploy
|
||||
uses: SamKirkland/FTP-Deploy-Action@4.0.0
|
||||
with:
|
||||
server: ${{ secrets.FTP_HOST }}
|
||||
username: ${{ secrets.FTP_USERNAME }}
|
||||
password: ${{ secrets.FTP_PASSWORD }}
|
||||
port: 21
|
||||
protocol: ftps
|
||||
security: strict
|
||||
state-name: ../.ftp-deploy-sync-state.json
|
||||
local-dir: ./dist/itsfiveoclockwhere/
|
||||
Generated
+26
-12579
File diff suppressed because it is too large
Load Diff
@@ -15,17 +15,5 @@ describe('AppComponent', () => {
|
||||
const app = fixture.componentInstance;
|
||||
expect(app).toBeTruthy();
|
||||
});
|
||||
|
||||
it(`should have as title 'itsfiveoclockwhere'`, () => {
|
||||
const fixture = TestBed.createComponent(AppComponent);
|
||||
const app = fixture.componentInstance;
|
||||
expect(app.title).toEqual('itsfiveoclockwhere');
|
||||
});
|
||||
|
||||
it('should render title', () => {
|
||||
const fixture = TestBed.createComponent(AppComponent);
|
||||
fixture.detectChanges();
|
||||
const compiled = fixture.nativeElement as HTMLElement;
|
||||
expect(compiled.querySelector('.content span')?.textContent).toContain('itsfiveoclockwhere app is running!');
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
@@ -12,7 +12,6 @@ import { TimezoneService } from './services/timezone.service';
|
||||
styleUrls: ['./app.component.scss']
|
||||
})
|
||||
export class AppComponent {
|
||||
title = 'itsfiveoclockwhere';
|
||||
|
||||
dates: any[] = []
|
||||
|
||||
|
||||
@@ -407,7 +407,7 @@ export class TimezoneService {
|
||||
'Pacific/Guadalcanal',
|
||||
'Pacific/Guam',
|
||||
'Pacific/Honolulu',
|
||||
// 'Pacific/Kanton', ?? Why is this not valid?
|
||||
'Pacific/Kanton', // Why is this not valid?
|
||||
'Pacific/Kiritimati',
|
||||
'Pacific/Kosrae',
|
||||
'Pacific/Kwajalein',
|
||||
|
||||
Reference in New Issue
Block a user